How to generate a new uInitrd

This forum is for Marvell Kirkwood devices such as the GoFlex Home/Net, PogoPlug v1/v2, SheevaPlug, and ZyXEL devices.

How to generate a new uInitrd

Postby visiedo » Sat Dec 14, 2013 11:23 pm

Hi,
After installing ArchLinux I upgraded the kernel and the uBoot. The new uBoot will not boot my system with the old /boot/uInitrd from Ubit 0.6.

The system will boot without a uInitrd, therefore I removed the old uInitrd from /boot and the system starts with no problem now.

Still I wonder if there is a benefit of having a initial ram disk, and if that is the case how to generate one.

I used mkinitcpio -g but the generated uInitrd, but the uBoot complained about a "wrong format" and did not boot again.
visiedo
 
Posts: 3
Joined: Tue Dec 10, 2013 4:29 pm

Re: How to generate a new uInitrd

Postby moonman » Sun Dec 15, 2013 1:23 am

Two main benifits, at least with ALARM are 1. you can choose the rootfs partition by label 2. automatic fsck of rootfs.

There was a thread by hydro, you can also use one i already generated in uboot updating thread linked in my signature.
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am

Re: How to generate a new uInitrd

Postby binaryni » Mon Dec 30, 2013 11:22 pm

you need to run this after mkinitcpio
mkimage -A arm -O linux -T ramdisk -C gzip -a 0x0 -e 0x0 -n initrd-3.12.6-2-ARCH -d ramdisk /boot/initrd-3.12.6-2-ARCH
where ramdisk is the output of mkinitcpio
feel free to change version number.
binaryni
 
Posts: 1
Joined: Mon Dec 30, 2013 9:18 pm

Re: How to generate a new uInitrd

Postby moonman » Tue Dec 31, 2013 12:02 am

U-boot is lookinf for just "uInitrd".
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am

Re: How to generate a new uInitrd

Postby ineiti » Tue Dec 31, 2013 1:29 pm

I'm trying to re-create a new kernel-image under a Smileplug (mostly to have the "-y"-parameter in fsck when booting up). Here is what I'm doing (I changed the kernel-version to 3-12-6-3 from 3-12-6-1):

$this->bbcode_second_pass_code('', 'mkinitcpio -g /boot/uImage.new
mkimage -A arm -O linux -T kernel -C none -a 0x8000 -e 0x8000 -n linux-mvebu-smileplug -d /boot/uImage.new /boot/uImage.3-12-6-3
')

Both commands finish without errors, but when I try to load the new uImage from u-boot, it always gives me a "Bad Data CRC" (I tried to re-create the image more than once).

Any ideas? I didn't find a how-to to generate the uImage, can somebody point me to the build-scripts for linux-mvebu-smileplug ??

BTW: do other people feel like walking on raw eggs when installing Archlinux with a MMC-card under a Smileplug? Mine just keep spewing ext-errors, but they were not cheap cards...
ineiti
 
Posts: 39
Joined: Fri Aug 23, 2013 9:03 pm


Return to Marvell Kirkwood

Who is online

Users browsing this forum: No registered users and 3 guests