From: Lars Larsen <lars@visionweeding.com>
To: "yocto@yoctoproject.org" <yocto@yoctoproject.org>
Subject: yocto linux syslinux and intramfs
Date: Thu, 22 Sep 2016 20:23:13 +0200 [thread overview]
Message-ID: <57E42191.4030003@visionweeding.com> (raw)
In-Reply-To: <CAMKF1spSa84Kw_9RL-o4pxc=22rMHCTn1voGEE0R4YF_qUFB0Q@mail.gmail.com>
Hello yocto world
I desperately need some help
It spawns off my yocto build, so I guess (hope) there is a wise guy or
two,that can give me some pointers
I realize is not 100% yocto related but, lean towards generic Linux - so
please forgive me.
I want to be able to boot up from flash, using a rw ramdisk that
'vanish' when I reboot.
I use SYSLINUX to boot the target.
I have a recipe that can build an image, that works fine.
Now I want it convoluted in an intramfs.
my image recipe
mybase.bb:
DESCRIPTION = "A base image that boots and work"
ALL_MY_APPS= " app1 app2 app3" ## all the software i want on target"
IMAGE_INSTALL = "packagegroup-core-boot ${ROOTFS_PKGMANAGE_BOOTSTRAP} \
${CORE_IMAGE_EXTRA_INSTALL} ${ALL_MYAPPS}"
inherit core-image
It creates a nice mybase-image-genericxx86..hdd image and I copy the
contents to my flash card.
All very nice
it gets booted,with these lines in syslinux.cfg
LABEL boot
KERNEL /vmlinuz
APPEND initrd=/rootfs.img LABEL=boot root=/dev/ram0
But If I make a new
conf/initramfs.conf:
IMAGE_FSTYPES = "cpio.gz"
INITRAMFS_IMAGE = "mybase"
INITRAMFS_IMAGE_BUNDLE = "1"
and then run the command
bitbake -R conf/initramfs.conf mybase
I as expected get an bzImage-initramfs-genericx86.bin
I presume this file contains the kernel as well as my rootfs as the initrd
But what to put in syslinux.cfg ?
The logical choise seems to be:
LABEL boot
KERNEL /bzImage-initramfs-genericx86.bin
APPEND LABEL=boot root=/dev/ram0
but it doesn't boot at all. Only flicker on the console, seems to be
invalid code.
Any advice any one ?
BR Lars
prev parent reply other threads:[~2016-09-22 18:24 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-27 11:38 Manipulating code and Building in offline environment Lars Larsen
2016-04-27 12:21 ` Gary Thomas
2016-04-27 13:03 ` Lars Larsen
2016-04-27 14:14 ` Burton, Ross
2016-04-29 20:45 ` Khem Raj
2016-09-22 18:23 ` Lars Larsen [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=57E42191.4030003@visionweeding.com \
--to=lars@visionweeding.com \
--cc=yocto@yoctoproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.