Problem booting ODROID XU3: SD card has inconsistent number

This forum is for topics dealing with problems with software specifically in the ARMv7h repo.

Problem booting ODROID XU3: SD card has inconsistent number

Postby treepleks » Mon Dec 22, 2014 6:08 pm

I'm trying to install ArchLinux ARM on a XU3 using a micro-SD. I followed the instructions on the "Installation" page very precisely. On the serial console, the system finishes in:

$this->bbcode_second_pass_code('', '
[ 6.101718] [c5] FAT-fs (mmcblk0p1): codepage cp437 not found
[ 6.107016] [c5] FAT-fs (mmcblk0p1): codepage cp437 not found
[ 6.112911] [c5] F2FS-fs (mmcblk0p1): Magic Mismatch, valid(0xf2f52010) - read(0x0)
[ 6.119386] [c5] F2FS-fs (mmcblk0p1): Can't find a valid F2FS filesystem in first superblock
[ 6.128862] [c5] F2FS-fs (mmcblk0p1): Magic Mismatch, valid(0xf2f52010) - read(0x0)
[ 6.135434] [c5] F2FS-fs (mmcblk0p1): Can't find a valid F2FS filesystem in second superblock
[ 6.144008] [c5] List of all partitions:
[ 6.147821] [c5] b300 30535680 mmcblk0 driver: mmcblk
[ 6.153566] [c5] b301 131584 mmcblk0p1 000c4046-01
[ 6.159259] [c5] b302 15042560 mmcblk0p2 000c4046-02
[ 6.164989] [c5] b318 4096 mmcblk0rpmb (driver?)
[ 6.170628] [c5] b310 4096 mmcblk0boot1 (driver?)
[ 6.176354] [c5] b308 4096 mmcblk0boot0 (driver?)
[ 6.182081] [c5] b320 7761920 mmcblk1 driver: mmcblk
[ 6.187806] [c5] b321 7760896 mmcblk1p1 a1692432-01
[ 6.193531] [c5] No filesystem could mount root, tried: ext3 ext2 ext4 cramfs vfat msdos romfs f2fs
[ 6.202659] [c5] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(179,1)
')

It looks that when SD boot is selected, uboot does see the SD card as MMC:0 but the kernel disagrees. Indeed, Uboot says before:

$this->bbcode_second_pass_code('', '
Checking Boot Mode ... SDMMC
MMC: S5P_MSHC2: 0, S5P_MSHC0: 1
MMC Device 0: 7.4 GiB <- this is the SD card
MMC Device 1: 29.1 GiB <- this is the 32GB eMMC module
')

but Linux sees the SD card as $this->bbcode_second_pass_code('', '/dev/mmcblk1'). Editing the /boot/boot.ini, replacing mmcblk0 by mmcblk1 in the line

$this->bbcode_second_pass_code('', 'setenv bootrootfs "console=tty1 console=ttySAC2,115200n8 root=/dev/mmcblk1p1 rootwait rw"')

did the trick. For facility, I attach the edited boot.ini file. It might help other people falling in the same micro-trap :-)
treepleks
 
Posts: 1
Joined: Sun Jun 08, 2014 8:44 am

Return to ARMv7h

Who is online

Users browsing this forum: No registered users and 7 guests