Community
cancel
Showing results for 
Search instead for 
Did you mean: 
TMain
New Contributor I
1,813 Views

Hello World as initramfs or initrd on Edison

Hey there,

as long as I can not compile the Linux Yocto Kernel (howto asked in ) I would like to reduce my booting time by replacing the initramfs.

For now I would like to replace the file by a simple program like described in https://landley.net/writing/rootfs-howto.html https://landley.net/writing/rootfs-howto.html. I've done the steps within a virtual machine and succeeded the test by replacing the initramfs with the self made initramfs.gpio.gz.

For now I discovered a thread in here which links to the blog https://edison.internet-share.com/wiki/Using_a_vanilla_Linux_kernel_with_Intel_Edison# U-Boot https://edison.internet-share.com/wiki/Using_a_vanilla_Linux_kernel_with_Intel_Edison# U-Boot which compiles a whole new system for the edison but more important is the u-boot section.

I moved the generated *.gz file onto the edison drive with Windows7 and see the file in /media/storage/initramfs_data.cpio.gz now I would like to set this as the initramfs file. My suggestion is to give some kernel-arguments via u-boot (https://edison.internet-share.com/wiki/Using_a_vanilla_Linux_kernel_with_Intel_Edison# U-Boot https://edison.internet-share.com/wiki/Using_a_vanilla_Linux_kernel_with_Intel_Edison# U-Boot) but I do not have any address of the file.

In short:

I've got a file '/media/storage/initramfs_data.cpio.gz' which I want to use as the initramfs or the initrd directly after loading the kernel. How is that possible?

Thanks for the answers!

Thomas

Tags (1)
0 Kudos
5 Replies
TMain
New Contributor I
77 Views

After some tests (I entered the setenv values from , last post) I got the following:

> run bootcmd_edsboot

reading edison-image-edison.hddimg

6144000 bytes read in 151 ms (38.8 MiB/s)

reading0ini

** Unable to read file0 **

Valid Boot Flag

Setup Sectors = 0 (defaulting to 4)

Setup Size = 0x00000a00

Magic signature not found

Using boot protocol version 1.00

Building boot_params at 0x00090000

Error: zImage kernel too big! (size: -2560, max: 524288)

# Kernel loading failed ...

The edison-image-edison.hddimg is from the Intel-iot zip package. Do I mess up with the adresses or does the flashall.bat some magic with the file itself?

Greets,

Thomas

idata
Community Manager
77 Views

Hi Thomas,

 

 

Thank you for contacting us.

 

 

To be honest, we haven't tried this, and any change that you will make to the kernel or U-Boot is out the of the scope of our support.

 

 

If you need to reduce the booting time, I recommend you to check this thread: https://communities.intel.com/thread/107609 https://communities.intel.com/thread/107609, you can find there that the easiest way to do this is removing every package that you don't need from your Edison's image.

 

 

I hope you find this information helpful.

 

 

Have a nice day.

 

 

Regards,

 

Leonardo R.
TMain
New Contributor I
77 Views

Hi Leonardo,

thanks for the reply and the honesty.

I took a look at the thread but it says nothing about any solution, only that the reduce of time is possible. It would be nice if Peter could say more specific what to do in that case. I'll try to send him a message and post my results here.

TMain
New Contributor I
77 Views

I found a solution which is part of my answer in

idata
Community Manager
77 Views

Hi Thomas,

 

 

That's awesome. Thank you so much for the detailed steps in that thread. It definitely will be useful for the community.

 

 

Have a nice day.

 

 

Regards,

 

Leonardo R.
Reply