armhf: highbank: relocate initrd to make room for a bigger kernel
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
flash-kernel (Ubuntu) |
Fix Released
|
Undecided
|
Adam Conrad | ||
Precise |
Won't Fix
|
Undecided
|
Unassigned | ||
Quantal |
Won't Fix
|
Undecided
|
Unassigned | ||
Raring |
Won't Fix
|
Undecided
|
Unassigned | ||
Saucy |
Won't Fix
|
Undecided
|
Unassigned | ||
Trusty |
Fix Released
|
Undecided
|
Adam Conrad |
Bug Description
Our kernels are growing big, thus if we want to avoid vmlinuz stomp over initrd after decompression, we should relocate initrd leaving more room for a bigger kernel.
It already happens with our T/master generic kernel on highbank:
boot.scr:
echo Starting Ubuntu...
setenv bootargs console=ttyAMA0 nosplash
mw.l 800000 0 10000
scsi scan
ext2load scsi 0 0x800000 vmlinuz
ext2load scsi 0 0x1000000 initrd.img
bootz 0x800000 0x1000000:
...
[ 1.953323] scsi 2:0:0:0: Direct-Access ATA SAMSUNG SSD 830 CXM0 PQ: 0 ANSI: 5
[ 1.961785] sd 2:0:0:0: [sda] 250069680 512-byte logical blocks: (128 GB/119 GiB)
[ 1.961853] sd 2:0:0:0: Attached scsi generic sg0 type 0
[ 1.974782] sd 2:0:0:0: [sda] Write Protect is off
[ 1.979650] sd 2:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[ 1.990153] sda: sda1 sda2 sda3 < sda5 sda6 >
[ 1.995656] sd 2:0:0:0: [sda] Attached SCSI disk
[ 2.300204] ata4: SATA link down (SStatus 0 SControl 300)
[ 2.644202] ata5: SATA link down (SStatus 0 SControl 300)
[ 2.649653] md: Waiting for all devices to be available before autodetect
[ 2.656454] md: If you don't use raid, use raid=noautodetect
[ 2.662474] md: Autodetecting RAID arrays.
[ 2.666573] md: Scanned 0 and added 0 devices.
[ 2.671014] md: autorun ...
[ 2.673805] md: ... autorun DONE.
[ 2.677180] RAMDISK: Couldn't find valid RAM disk image starting at 0.
...
while moving initrd futher up, fixes it:
boot.scr:
setenv bootargs console=ttyAMA0 nosplash
mw.l 800000 0 10000
scsi scan
ext2load scsi 0 0x800000 vmlinuz
ext2load scsi 0 0x2000000 initrd.img
bootz 0x800000 0x2000000:
ubuntu@c09:~$ uname -a
Linux c09 3.12.0-2-generic #7 SMP Tue Nov 12 12:50:26 UTC 2013 armv7l armv7l armv7l GNU/Linux
Related branches
Changed in flash-kernel (Ubuntu Trusty): | |
assignee: | nobody → Adam Conrad (adconrad) |
this fix should be propagated back to every Ubuntu release that will carry a modern, multiplatform, generic armhf kernel.