Tiny Core Linux on the Beaglebone

I’m trying to put Tiny Core Linux on the Beaglebone:

http://distro.ibiblio.org/tinycorelinux/arm.html

Their SD card image is laid out like this:

/uCore
/uImage
/script.bin
/boot.scr

The end of boot.scr contains:

setenv bootargs init=/init panic=10 rootwait loglevel=3
fatload mmc 0 0x43000000 script.bin
fatload mmc 0 0x48000000 uImage
fatload mmc 0 0x43100000 uCore
bootm 0x48000000 0x43100000

I’ve changed the layout to the following:

/uCore
/boot/uImage
/boot/MLO
/boot/u-boot.img
/boot/uEnv.txt

I pulled uImage, MLO, and u-boot.img from my Gentoo SD card which boots perfectly. I have the following in uEnv.txt:

root=/dev/mmcblk0p1 ro
rootfstype=vfat rootwait
optargs=init=/init panic=10 rootwait ip=none
fatload mmc 0 0x43100000 uCore

When I try to boot, I only get “CCCCC” through the console. Can anyone see what I’m doing wrong?

  • Grant

If your only getting "CCC" thru the serial terminal, then the
rom-based bootloader failed to find the MLO in your boot partition...
Re-Format the boot partition and reset the bootflag before coping the
MLO file before anything else to it..

Regards,

I’m trying to put Tiny Core Linux on the Beaglebone:

I’m trying to put Tiny Core Linux on the Beaglebone:

http://distro.ibiblio.org/tinycorelinux/arm.html

Their SD card image is laid out like this:

/uCore
/uImage
/script.bin
/boot.scr

The end of boot.scr contains:

setenv bootargs init=/init panic=10 rootwait loglevel=3
fatload mmc 0 0x43000000 script.bin
fatload mmc 0 0x48000000 uImage
fatload mmc 0 0x43100000 uCore
bootm 0x48000000 0x43100000

I’ve changed the layout to the following:

/uCore
/boot/uImage
/boot/MLO
/boot/u-boot.img
/boot/uEnv.txt

I pulled uImage, MLO, and u-boot.img from my Gentoo SD card which boots
perfectly. I have the following in uEnv.txt:

root=/dev/mmcblk0p1 ro
rootfstype=vfat rootwait
optargs=init=/init panic=10 rootwait ip=none
fatload mmc 0 0x43100000 uCore

When I try to boot, I only get “CCCCC” through the console. Can anyone see
what I’m doing wrong?

If your only getting “CCC” thru the serial terminal, then the
rom-based bootloader failed to find the MLO in your boot partition…
Re-Format the boot partition and reset the bootflag before coping the
MLO file before anything else to it.

Thanks Robert, I did that and the kernel loads fine but init fails:

EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
devtmpfs: error mounting -2
Freeing init memory: 144K
Failed to execute /init. Attempting defaults…
Kernel panic - not syncing: No init found. Try passing init= option to kernel.

Here is my latest uEnv.txt:

bootfile=/uImage
optargs=init=/init rootwait
fatload mmc 0 0x43100000 uCore

I tried adding an mmcboot line to uEnv.txt so I could add the 0x43100000 address for uCore:

mmcboot=echo Booting from mmc …; run mmcargs; bootm 0x80200000 0x43100000

But then I get a “data abort” and the kernel doesn’t load:

Booting kernel from Legacy Image at 80200000 …

Image Name: Linux-3.6.0-rc7-00219-g35e0f42
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 2878667 Bytes = 2.7 MiB
Load Address: 80008000
Entry Point: 80008000
Verifying Checksum … OK
data abort
pc : [<8ff99480>] lr : [<8ff996ac>]
sp : 8fe6abd0 ip : 8fe6d163 fp : 00000001
r10: 00000002 r9 : 00000000 r8 : 8fe6af68
r7 : 8ffbaebc r6 : 43100000 r5 : 8ffbaec0 r4 : 43100000
r3 : 00000000 r2 : 00000010 r1 : 00000000 r0 : 43100000
Flags: nZCv IRQs off FIQs on Mode SVC_32
Resetting CPU …

I think I need to load the userland uCore image properly. Can anyone tell me how to do that?

  • Grant

I’ve gotten farther along, but I get one of these two errors when loading the ramdisk:

RAMDISK: Couldn’t find valid RAM disk image starting at 0.

Wrong Ramdisk Image Format
Ramdisk image is corrupt or invalid

Please let me know if you have any pointers.

  • Grant