SD card pre-installed image issue on OMAP4 Blaze board

Bug #652143 reported by Michael Opdenacker
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
jasper-initramfs (Ubuntu)
Fix Released
High
Oliver Grawert
Maverick
Fix Released
High
Oliver Grawert

Bug Description

Hi,

I downloaded the 20100928 pre-installed Maverick image for OMAP4 to install it on my OMAP4430 Blaze board, and flashed it on an SD card.

I had to modify the MLO and u-boot.bin files in the FAT partition to support this board, but this was expected. I also replaced "root=/dev/mmcblk0p2" by "root=/dev/mmcblk1p2" to boot on the SD card (/dev/mmcblk0 corresponds to the eMMC on the Blaze board).

The board booted, and your scripts resized the second SD card partition to fill the whole available space. Then the system rebooted.

I checked the updated boot.scr script and the bootargs contained:
root=LABEL=emmcroot

emmcroot is the label of the ext3 filesystem on /dev/mmcblk0p2 (the eMMC already had its own partitions and filesystems).

This is wrong because I wanted to install Maverick on the SD card. It seems that your scripts took the label of /dev/mmcblk0p2 as it would have done on the Panda board. Could it instead take the label from the filesystem on the partition specified at the initial boot (root=/dev/mmcblk1p2 in my case)?

Any other ideas?

Thank you in advance,

Cheers,

Michael.

Tags: armel
Nicolas Dechesne (ndec)
tags: added: armel
Oliver Grawert (ogra)
Changed in jasper-initramfs (Ubuntu Maverick):
assignee: nobody → Oliver Grawert (ogra)
milestone: none → ubuntu-10.10
importance: Undecided → High
status: New → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package jasper-initramfs - 0.33

---------------
jasper-initramfs (0.33) maverick; urgency=low

  * make sure we use the VOLID from the actually specified root= kernel
    parameter in case a user modifies the initial boot.scr (LP: #652143)
 -- Oliver Grawert <email address hidden> Sat, 02 Oct 2010 02:08:13 +0200

Changed in jasper-initramfs (Ubuntu Maverick):
status: Fix Committed → Fix Released
Revision history for this message
Michael Opdenacker (michael-opdenacker) wrote :

Many thanks!

I won't be available to test it before Tuesday though. If anyone gets a chance to do it before, be my guest!

Thanks again for this fix!

Michael.

Revision history for this message
Michael Opdenacker (michael-opdenacker) wrote :

Hi,

I still observe this bug with the 20101005 pre-installed image for OMAP4 on the Blaze board.
I did specify root=/dev/mmcblk1p2 at the first boot, but it took the label of /dev/mmcblk0p2 (eMMC) instead.

Did the bug really get fixed, or hasn't the fix made its way to the released images yet?

Thank you in advance,

Cheers,

Michael.

Revision history for this message
Michael Opdenacker (michael-opdenacker) wrote :

The cause of the bug was found. Here are explanations written by Nicolas Dechesne:

We discussed with canonical team on IRC, and we found the reason why pre installed images don't work on blaze...

CONFIG_INIT_PASS_ALL_PARAMS is missing in our kernel config, as such the root=<> arg is not set properly in initrd init program, and ogra was relying on this parameter to detect mmcblk0 and mmcblk1.

So Michael, what that means is that when you tested this you ended up installing uImage/uInitrd on the eMMC (mmcblk0) since this parameter was ignored.

Since we found this too late, this won't make it in 10.10, sadly.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.