View: 577|Reply: 2

Tiny core on orangepi zero 2

[Copy link]

2

threads

4

posts

50

credits

Registered member

Rank: 2

credits
50
Published in 2023-10-15 00:59:23 | Show all floors |Read mode
Hi,
I am wondering if it is possible to port tiny core for orangepi zero 2.
If yes, did someone already manage to do this ?
Or at least, what are the main steps to do so ?
Thanks

2

threads

4

posts

50

credits

Registered member

Rank: 2

credits
50
 Author| Published in 2023-10-17 06:14:12 | Show all floors
So far, so good, I managed to create a sd-card with u-boot booloader, I prepared a rootfs for tiny core, picked up the kernel and the dtb file from orangepi-os in /boot directory.
But now I am stucked with kernel booting:

  1. ## Loading init Ramdisk from Legacy Image at 4ff00000 ...
  2.    Image Name:   
  3.    Image Type:   ARM Linux RAMDisk Image (gzip compressed)
  4.    Data Size:    43036238 Bytes = 41 MiB
  5.    Load Address: 00000000
  6.    Entry Point:  00000000
  7.    Verifying Checksum ... OK
  8. ## Flattened Device Tree blob at 4fa00000
  9.    Booting using the fdt blob at 0x4fa00000
  10. Working FDT set to 4fa00000
  11.    Loading Ramdisk to 476f5000, end 49fffe4e ... OK
  12.    Loading Device Tree to 0000000047683000, end 00000000476f4fff ... OK
  13. Working FDT set to 47683000

  14. Starting kernel ...

  15. [    5.455521] thermal thermal_zone0: cpu-thermal: critical temperature reached, shutting down
  16. [    5.463956] reboot: HARDWARE PROTECTION shutdown (Temperature too high)
  17. [    5.723027] thermal thermal_zone0: cpu-thermal: critical temperature reached, shutting down
  18. [    5.731493] reboot: HARDWARE PROTECTION shutdown (Temperature too high)
Copy code


:O

2

threads

4

posts

50

credits

Registered member

Rank: 2

credits
50
 Author| Published in 2023-10-24 18:27:33 | Show all floors
I try another approch by using armbian image https://www.armbian.com/orange-pi-zero-2/
Then following this method for building the initrd image and then formating for uboot (the arm bootloader) with thie command mkimage

The thermal problem is not longer here, but the /init script failed boot.

  1. [   30.292771] Run /init as init process
  2. [   30.306018] request_module: kmod_concurrent_max (0) close to 0 (max_modprobes: 50), for module binfmt-464c, throttling...
  3. [   35.556720] request_module: modprobe binfmt-464c cannot be processed, kmod busy with 50 threads for more than 5 seconds now
  4. [   35.571392] Failed to execute /init (error -8)
  5. [   35.586995] Run /sbin/init as init process
  6. [   35.600382] request_module: kmod_concurrent_max (0) close to 0 (max_modprobes: 50), for module binfmt-464c, throttling...
  7. [   40.676712] request_module: modprobe binfmt-464c cannot be processed, kmod busy with 50 threads for more than 5 seconds now
  8. [   40.691437] Starting init: /sbin/init exists but couldn't execute it (error -8)
  9. [   40.709900] Run /etc/init as init process
  10. [   40.714098] Run /bin/init as init process
  11. [   40.718205] Run /bin/sh as init process
  12. [   40.731148] request_module: kmod_concurrent_max (0) close to 0 (max_modprobes: 50), for module binfmt-464c, throttling...
  13. [   45.796721] request_module: modprobe binfmt-464c cannot be processed, kmod busy with 50 threads for more than 5 seconds now
  14. [   45.811442] Starting init: /bin/sh exists but couldn't execute it (error -8)
  15. [   45.829648] Kernel panic - not syncing: No working init found.  Try passing init= option to kernel. See Linux Documentation/admin-guide/init.rst for guidance.
  16. [   45.843798] CPU: 2 PID: 1 Comm: swapper/0 Not tainted 6.1.53-current-sunxi64 #1
  17. [   45.851102] Hardware name: OrangePi Zero2 (DT)
  18. [   45.855539] Call trace:
  19. [   45.857983]  dump_backtrace+0xd8/0x130
  20. [   45.861744]  show_stack+0x18/0x30
  21. [   45.865060]  dump_stack_lvl+0x68/0x84
  22. [   45.868725]  dump_stack+0x18/0x34
  23. [   45.872040]  panic+0x174/0x320
  24. [   45.875095]  kernel_init+0x12c/0x13c
  25. [   45.878673]  ret_from_fork+0x10/0x20
  26. [   45.882249] SMP: stopping secondary CPUs
  27. [   45.886169] Kernel Offset: disabled
  28. [   45.889650] CPU features: 0x00000,00800080,0000420b
  29. [   45.894522] Memory Limit: none
Copy code
Next step is to solve this
You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list