Hi, I'm using barebox as bootloader on my mini2440 from Pengutronix I'm trying to put kernel and file system into MMC card, I setup the barebox env as necessary and format the MMC into two ext2 partitions boot and fs, in first partition I put the uImage-mini2440 kernel image but the problem is that when barebox starts it cannot run kernel from boot partition and it says Bad Magic Number. How it can be solved ???
Bad Nagic number
The partition with the kernel must be a plain one, e.g. without a filesystem, to be able to make barebox load it (Barebox does not know the ext2 fileformat, so it just reads the plain sectors from this partition to load the kernel). Write the kernel with the command 'dd' to this partition. Only the partition with root filesystem to be used later on by the kernel must use a filesystem.
Thanks a lot !!! I reprepared the MMC, fisrt partition without filesystem and then downloaded the kernel image to raw partition by typing in barebox "tftp uImage-mini2440 dev/disk0.0" and finally edit the env/bin/init change last line "boot" into mci0.probe=1 boot mmc root=b302 (because it couldn't find the correct entry for filsystem) and now it can boot the linux from MMC card !
I've just had a similar issue booting from the mmc card on Linux 3.7. - hence finding this post. It turns out the incorrect parameter in barebox /env/bin/boot was being passed to the kernel. --- line 65: bootargs="$bootargs rootfstype=$rootfs_type noinitrd" +++ line 65: bootargs="$bootargs rootfs_mmc_type=$rootfs_type noinitrd"
One question: - is this required because you are doing something non-standard? I have been running this /env/bin/boot for about two years without any problems with 2GB SD cards. Just curious.