uInitrd

AmigaOne X5000 platform specific issues related to Linux only.
Post Reply
User avatar
xeno74
Posts: 9348
Joined: Fri Mar 23, 2012 7:58 am

uInitrd

Post by xeno74 »

Hi All,

I tried to create an uInitrd for the X5000 with the following command:

Code: Select all

mkimage -T ramdisk -C gzip -n 'Kernel 4.15-rc3 uInitrd' -d initrd.img-4.15.0-rc3 uInitrd
Output:

Code: Select all

Image Name:   Kernel 4.15-rc3 uInitrd
Created:      Mon Dec 11 12:26:50 2017
Image Type:   PowerPC Linux RAMDisk Image (gzip compressed)
Data Size:    4560257 Bytes = 4453.38 kB = 4.35 MB
Load Address: 00000000
Entry Point:  00000000
I will test it on my AmigaOne X5000.

Cheers,
Christian
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

Running Linux on AmigaONEs can require some tinkering.
User avatar
xeno74
Posts: 9348
Joined: Fri Mar 23, 2012 7:58 am

Re: uInitrd

Post by xeno74 »

Hi All,

I was able to boot the MATE PowerPC Remix 2017 with the new uInitrd with the LABEL AMIGAONE from a USB flash drive.
  1. Code: Select all

    setenv bootargs "root=LABEL=AMIGAONE rootdelay=5"
  2. Code: Select all

    load sata 0:1 1000000 uImage-4.15
  3. Code: Select all

    load sata 0:1 1c00000 cyrus.dtb
  4. Code: Select all

    load sata 0:1 2000000 uInitrd
  5. Code: Select all

    bootm 1000000 2000000 1c00000
Cheers,
Christian
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

Running Linux on AmigaONEs can require some tinkering.
Roland
Posts: 825
Joined: Tue May 02, 2017 7:23 am

Re: uInitrd

Post by Roland »

xeno74 wrote:I tried to create an uInitrd for the X5000....:
Could you please tell us what is this 'uInitrd' ja and what advantage does it offer, compared to the earlier method...?
- Roland -
User avatar
xeno74
Posts: 9348
Joined: Fri Mar 23, 2012 7:58 am

Re: uInitrd

Post by xeno74 »

Roland wrote: Could you please tell us what is this 'uInitrd' ja and what advantage does it offer, compared to the earlier method...?
uInitrd = U-Boot initial ramdisk

With the uInitrd, you don't need to know the /dev location of your drive/partition anymore. For example a USB flash drive. If your partition on your USB flash drive has a name then you can boot the kernel with this name as boot argument.
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

Running Linux on AmigaONEs can require some tinkering.
User avatar
xeno74
Posts: 9348
Joined: Fri Mar 23, 2012 7:58 am

Re: uInitrd

Post by xeno74 »

Hi All,

I created an uInitrd for the new stable longterm kernel 4.9.63 with the following command today.

Code: Select all

mkimage -T ramdisk -C gzip -n 'Kernel 4.9.63 uInitrd' -d /boot/initrd.img-4.9.63_A-EON_AmigaOneX5000 uInitrd
Output:

Code: Select all

Image Name:   Kernel 4.9.63 uInitrd
Created:      Thu Dec 14 12:31:50 2017
Image Type:   PowerPC Linux RAMDisk Image (gzip compressed)
Data Size:    4548523 Bytes = 4441.92 kB = 4.34 MB
Load Address: 00000000
Entry Point:  00000000
Cheers,
Christian
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

Running Linux on AmigaONEs can require some tinkering.
Post Reply