WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: help:About picore12 transplantation  (Read 2546 times)

Offline 2503029332@qq.com

  • Newbie
  • *
  • Posts: 3
help:About picore12 transplantation
« on: November 23, 2020, 06:13:04 PM »
I ported picore12 to A64 and the following problems occurred, how can I solve it?
Starting kernel ...

init started: BusyBox v1.31.1 (2020-11-23 19:03:30 CST)
mount: mounting devpts on /dev/pts failed: No such file or directory
mount: mounting tmpfs on /dev/shm failed: No such file or directory
Booting Core 12.0
Running Linux Kernel 4.19.86-sunxi64.
/etc/init.d/tc-config: line 32: can't create /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor: nonexistent directory
Checking boot options... Done.
Starting udev daemon for hotplug support.../etc/init.d/tc-config: line 109: /sbin/udevd: not found
/etc/init.d/tc-config: line 111: /sbin/udevadm: not found
/etc/init.d/tc-config: line 112: /sbin/udevadm: not found
Illegal instruction

Offline 2503029332@qq.com

  • Newbie
  • *
  • Posts: 3
Re: help:About picore12 transplantation
« Reply #1 on: November 23, 2020, 06:14:14 PM »

Starting kernel ...

init started: BusyBox v1.31.1 (2020-11-23 19:03:30 CST)
mount: mounting devpts on /dev/pts failed: No such file or directory
mount: mounting tmpfs on /dev/shm failed: No such file or directory
Booting Core 12.0
Running Linux Kernel 4.19.86-sunxi64.
/etc/init.d/tc-config: line 32: can't create /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor: nonexistent directory
Checking boot options... Done.
Starting udev daemon for hotplug support.../etc/init.d/tc-config: line 109: /sbin/udevd: Illegal instruction
/etc/init.d/tc-config: line 111: /sbin/udevadm: Illegal instruction
/etc/init.d/tc-config: line 112: /sbin/udevadm: Illegal instruction
Illegal instruction

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11213
Re: help:About picore12 transplantation
« Reply #2 on: November 23, 2020, 06:58:21 PM »
Hi 2503029332@qq.com
... Illegal instruction
That indicates the code is not compatible with your processor.

Offline 2503029332@qq.com

  • Newbie
  • *
  • Posts: 3
回答: 帮助: 关于 picore12 移植
« Reply #3 on: November 23, 2020, 07:03:32 PM »
Do I need to modify the lib in picore?

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 10960
Re: help:About picore12 transplantation
« Reply #4 on: November 24, 2020, 12:01:29 AM »
Many lines showing your kernel config is not compatible.
The only barriers that can stop you are the ones you create yourself.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14535
Re: 回答: 帮助: 关于 picore12 移植
« Reply #5 on: November 24, 2020, 12:59:46 AM »
Do I need to modify the lib in picore?

You need to recompile /sbin/udevadm for your hardware.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11213
Re: help:About picore12 transplantation
« Reply #6 on: November 24, 2020, 05:43:19 AM »
Hi 2503029332@qq.com
... Running Linux Kernel 4.19.86-sunxi64. ...
Where did that come from? I don't think it's one of our kernels, is it?
It looks like you mixed a kernel from somewhere else with our initrd.

Do I need to modify the lib in picore?

You need to recompile /sbin/udevadm for your hardware.
And  /sbin/udevd,  and possibly other programs contained in the initrd that haven't tried to execute yet.

It's also likely you'll these have issues with extensions. Also, kernel modules won't match the kernel.