Page 1 of 1

uInitrd

PostPosted: Mon Dec 11, 2017 1:30 pm
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

Re: uInitrd

PostPosted: Mon Dec 11, 2017 3:24 pm
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

Re: uInitrd

PostPosted: Mon Dec 11, 2017 9:04 pm
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...?

Re: uInitrd

PostPosted: Tue Dec 12, 2017 12:00 pm
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.

Re: uInitrd

PostPosted: Thu Dec 14, 2017 1:36 pm
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