mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* initrd in imx8mm
@ 2019-09-06  9:33 Yazdani, Reyhaneh
  2019-09-06  9:45 ` Ahmad Fatoum
  2019-09-09 11:20 ` Yazdani, Reyhaneh
  0 siblings, 2 replies; 3+ messages in thread
From: Yazdani, Reyhaneh @ 2019-09-06  9:33 UTC (permalink / raw)
  To: barebox

Hello everyone,

I have an initramfs file that want to be called via initrd in Barebox.
I have configured my boot script as below:

#!/bin/sh

global.bootm.image="/mnt/mmc1.0/Image"
global.bootm.initrd="/mnt/mmc1.0/initramfs"
global.bootm.oftree="/mnt/mmc1.0/Image-fsl-imx8mm-evk.dtb"
global.linux.bootargs.dyn.root="root=/dev/mmcblk1p5 rootwait video=-32
fsck.repair=yes"

But when I call this boot script, initramfs is not executed and only Linux
Kernel and device tree are loaded and system boots.

I have done this process on imx6 board previously and my initramfs was called
successfully via initrd.

Is this feature not available for imx8mq/imx8mm? Actually the function
bootm_load_initrd is never called.

Best regards,
Reyhaneh

--
Reyhaneh Yazdani
Data Modul AG                            TEL:    +49-89-56017-154
Embedded development                 FAX:    +49-89-56017-119
Linux - Development                      RG: HR-Muenchen B-85591
Landsberger Str. 322 D-80687 Muenchen - http://www.data-modul.com

Vertrauliche E-Mail von / Confidential e-mail from: DATA MODUL AG
Vorstand / CEO: Dr. Florian Pesahl
Vorsitzende des Aufsichtsrates / Chairwoman of the Supervisory Board: Kristin D. Russell
Sitz der Gesellschaft / Registered Office: München
Registergericht / Registration Court: München Handelsregister B 85 591



_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: initrd in imx8mm
  2019-09-06  9:33 initrd in imx8mm Yazdani, Reyhaneh
@ 2019-09-06  9:45 ` Ahmad Fatoum
  2019-09-09 11:20 ` Yazdani, Reyhaneh
  1 sibling, 0 replies; 3+ messages in thread
From: Ahmad Fatoum @ 2019-09-06  9:45 UTC (permalink / raw)
  To: barebox

Hello,

On 9/6/19 11:33 AM, Yazdani, Reyhaneh wrote:
> Hello everyone,
> 
> I have an initramfs file that want to be called via initrd in Barebox.
> I have configured my boot script as below:
> 
> #!/bin/sh
> 
> global.bootm.image="/mnt/mmc1.0/Image"
> global.bootm.initrd="/mnt/mmc1.0/initramfs"
> global.bootm.oftree="/mnt/mmc1.0/Image-fsl-imx8mm-evk.dtb"
> global.linux.bootargs.dyn.root="root=/dev/mmcblk1p5 rootwait video=-32
> fsck.repair=yes"
> 
> But when I call this boot script, initramfs is not executed and only Linux
> Kernel and device tree are loaded and system boots.
> 
> I have done this process on imx6 board previously and my initramfs was called
> successfully via initrd.
> 
> Is this feature not available for imx8mq/imx8mm? Actually the function
> bootm_load_initrd is never called.

[Sidenote: bootm.verbose shows some extra boot info]

The bootm handler code for arm64 is in arch/arm/lib64/armlinux.c
There's no loading of an initrd there, unlike arch/arm/lib32/bootm.c
so I'd assume it's indeed not implemented, but I don't think it's difficult
to add though, maybe you want to write a patch? :)

Otherwise, you could always have the initramfs embedded in the kernel image.

Cheers
Ahmad

> 
> Best regards,
> Reyhaneh
> 
> --
> Reyhaneh Yazdani
> Data Modul AG                            TEL:    +49-89-56017-154
> Embedded development                 FAX:    +49-89-56017-119
> Linux - Development                      RG: HR-Muenchen B-85591
> Landsberger Str. 322 D-80687 Muenchen - http://www.data-modul.com
> 
> Vertrauliche E-Mail von / Confidential e-mail from: DATA MODUL AG
> Vorstand / CEO: Dr. Florian Pesahl
> Vorsitzende des Aufsichtsrates / Chairwoman of the Supervisory Board: Kristin D. Russell
> Sitz der Gesellschaft / Registered Office: München
> Registergericht / Registration Court: München Handelsregister B 85 591
> 
> 
> 
> _______________________________________________
> barebox mailing list
> barebox@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox
> 

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: initrd in imx8mm
  2019-09-06  9:33 initrd in imx8mm Yazdani, Reyhaneh
  2019-09-06  9:45 ` Ahmad Fatoum
@ 2019-09-09 11:20 ` Yazdani, Reyhaneh
  1 sibling, 0 replies; 3+ messages in thread
From: Yazdani, Reyhaneh @ 2019-09-09 11:20 UTC (permalink / raw)
  To: barebox

Hi Ahmad,

yes, you are right. We can embed initramfs in Kernel. I will try to implement
initrd for lib64 in Barebox. Then, I will post it here as a patch :)

On 9/6/19 11:33 AM, reyhaneh yazdani wrote:
> Hello everyone,
>
> I have an initramfs file that want to be called via initrd in Barebox.
> I have configured my boot script as below:
>
> #!/bin/sh
>
> global.bootm.image="/mnt/mmc1.0/Image"
> global.bootm.initrd="/mnt/mmc1.0/initramfs"
> global.bootm.oftree="/mnt/mmc1.0/Image-fsl-imx8mm-evk.dtb"
> global.linux.bootargs.dyn.root="root=/dev/mmcblk1p5 rootwait video=-32
> fsck.repair=yes"
>
> But when I call this boot script, initramfs is not executed and only Linux
> Kernel and device tree are loaded and system boots.
>
> I have done this process on imx6 board previously and my initramfs was called
> successfully via initrd.
>
> Is this feature not available for imx8mq/imx8mm? Actually the function
> bootm_load_initrd is never called.
>
> Best regards,
> Reyhaneh
>

--
Reyhaneh Yazdani
Data Modul AG                            TEL:    +49-89-56017-154
Embedded development                 FAX:    +49-89-56017-119
Linux - Development                      RG: HR-Muenchen B-85591
Landsberger Str. 322 D-80687 Muenchen - http://www.data-modul.com

Vertrauliche E-Mail von / Confidential e-mail from: DATA MODUL AG
Vorstand / CEO: Dr. Florian Pesahl
Vorsitzende des Aufsichtsrates / Chairwoman of the Supervisory Board: Kristin D. Russell
Sitz der Gesellschaft / Registered Office: München
Registergericht / Registration Court: München Handelsregister B 85 591



_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-09-09 11:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-06  9:33 initrd in imx8mm Yazdani, Reyhaneh
2019-09-06  9:45 ` Ahmad Fatoum
2019-09-09 11:20 ` Yazdani, Reyhaneh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox