Re: [yocto] Any Linux/Yocto Image Installer (for target system)
On 2018年07月07日 05:52, Raymond Yeung wrote: Is there any installer that I could download along with the .hddimg (or .iso) image to the RAM, invoke the installer, so we could have a bootable image installed on a SSD? Sorry for replying late There is a target installer meta-anaconda in yocto, which is derived from fedora's installer (anaconda) Here is the README: http://git.yoctoproject.org/cgit/cgit.cgi/meta-anaconda/tree/README //Hongxu History: I can already create USB live image with dd and .hddimg. I could also dd the .hddimg onto SSD and make it bootable. The problem is that I need multiple partitions on my 250MB SSD, some reserved for other purposes. I find that when booting up with USB running SysLinux, I could install GRUB, vmlinuz, along with boot.img and core.img under /boot directory, and the rootFs under root (i.e. '/') directory. That's 4 partitions. I believe I could resize the largest partition after installation to do what I want. Is there a way to do this manually, possibly with a utility or a shell script? Thanks, Raymond -- ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
Re: [yocto] Any Linux/Yocto Image Installer (for target system)
Thanks Ross. I found init-install.sh that I could relate to run-time installation offered at BOOT time. And I'd used it to install image on SSD from USB drive. Would you or anyone know where the script that formats/generates .hddimg? I'd like to see if we could customize the layout of this image to multiple partitions. The reason I'm thinking this way is that our real H/W (vs. the evaluation platform I've been using) doesn't support USB port, thus no run-time installer. From: Burton, Ross Sent: Monday, July 9, 2018 2:02 AM To: Raymond Yeung Cc: yocto@yoctoproject.org Subject: Re: [yocto] Any Linux/Yocto Image Installer (for target system) The relevant recipes are in meta/recipes-core/initrdscripts/. Ross On 9 July 2018 at 04:10, Raymond Yeung mailto:rksye...@hotmail.com>> wrote: This brings up the next logical question - where is the installer? I'd already done a grep and looked into the volume of output. You could ask why don't I read the code. Yes, only if I know what I'm reading is the "correct" file/code. Otherwise, I could be spending a lot of time reading a lot of unrelated codes. If I did "dd" of .hddimg to SSD, there's only 1 partition. If I could locate where the logic is that generates this .hddimg file, perhaps I could figure out how it creates its single partition, and perhaps add one or more partitions to it as well. From: Burton, Ross mailto:ross.bur...@intel.com>> Sent: Saturday, July 7, 2018 3:39 PM To: Raymond Yeung Cc: yocto@yoctoproject.org<mailto:yocto@yoctoproject.org> Subject: Re: [yocto] Any Linux/Yocto Image Installer (for target system) The easiest thing would be to edit the installer script that goes into the hddimg to create your extra partitions and whatever else you want done. Ross On 6 July 2018 at 22:52, Raymond Yeung mailto:rksye...@hotmail.com>> wrote: > Is there any installer that I could download along with the .hddimg (or > .iso) image to the RAM, invoke the installer, so we could have a bootable > image installed on a SSD? > > > History: > > I can already create USB live image with dd and .hddimg. I could also dd > the .hddimg onto SSD and make it bootable. The problem is that I need > multiple partitions on my 250MB SSD, some reserved for other purposes. > > > I find that when booting up with USB running SysLinux, I could install GRUB, > vmlinuz, along with boot.img and core.img under /boot directory, and the > rootFs under root (i.e. '/') directory. That's 4 partitions. I believe I > could resize the largest partition after installation to do what I want. > > > Is there a way to do this manually, possibly with a utility or a shell > script? > > > Thanks, > > Raymond > > > -- > ___ > yocto mailing list > yocto@yoctoproject.org<mailto:yocto@yoctoproject.org> > https://lists.yoctoproject.org/listinfo/yocto yocto Info Page<https://lists.yoctoproject.org/listinfo/yocto> lists.yoctoproject.org<http://lists.yoctoproject.org> Discussion of all things about the Yocto Project. Read our Community Guidelines or learn more about how to participate in other community discussions. Subscribe before posting to bypass moderation. > -- ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
Re: [yocto] Any Linux/Yocto Image Installer (for target system)
The relevant recipes are in meta/recipes-core/initrdscripts/. Ross On 9 July 2018 at 04:10, Raymond Yeung wrote: > This brings up the next logical question - where is the installer? I'd > already done a grep and looked into the volume of output. You could ask > why don't I read the code. Yes, only if I know what I'm reading is the > "correct" file/code. Otherwise, I could be spending a lot of time reading > a lot of unrelated codes. > > > If I did "dd" of .hddimg to SSD, there's only 1 partition. If I could > locate where the logic is that generates this .hddimg file, perhaps I could > figure out how it creates its single partition, and perhaps add one or more > partitions to it as well. > > > -- > *From:* Burton, Ross > *Sent:* Saturday, July 7, 2018 3:39 PM > *To:* Raymond Yeung > *Cc:* yocto@yoctoproject.org > *Subject:* Re: [yocto] Any Linux/Yocto Image Installer (for target system) > > The easiest thing would be to edit the installer script that goes into > the hddimg to create your extra partitions and whatever else you want > done. > > Ross > > On 6 July 2018 at 22:52, Raymond Yeung wrote: > > Is there any installer that I could download along with the .hddimg (or > > .iso) image to the RAM, invoke the installer, so we could have a bootable > > image installed on a SSD? > > > > > > History: > > > > I can already create USB live image with dd and .hddimg. I could also dd > > the .hddimg onto SSD and make it bootable. The problem is that I need > > multiple partitions on my 250MB SSD, some reserved for other purposes. > > > > > > I find that when booting up with USB running SysLinux, I could install > GRUB, > > vmlinuz, along with boot.img and core.img under /boot directory, and the > > rootFs under root (i.e. '/') directory. That's 4 partitions. I believe > I > > could resize the largest partition after installation to do what I want. > > > > > > Is there a way to do this manually, possibly with a utility or a shell > > script? > > > > > > Thanks, > > > > Raymond > > > > > > -- > > ___ > > yocto mailing list > > yocto@yoctoproject.org > > https://lists.yoctoproject.org/listinfo/yocto > yocto Info Page <https://lists.yoctoproject.org/listinfo/yocto> > lists.yoctoproject.org > Discussion of all things about the Yocto Project. Read our Community > Guidelines or learn more about how to participate in other community > discussions. Subscribe before posting to bypass moderation. > > > > > -- ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
Re: [yocto] Any Linux/Yocto Image Installer (for target system)
This brings up the next logical question - where is the installer? I'd already done a grep and looked into the volume of output. You could ask why don't I read the code. Yes, only if I know what I'm reading is the "correct" file/code. Otherwise, I could be spending a lot of time reading a lot of unrelated codes. If I did "dd" of .hddimg to SSD, there's only 1 partition. If I could locate where the logic is that generates this .hddimg file, perhaps I could figure out how it creates its single partition, and perhaps add one or more partitions to it as well. From: Burton, Ross Sent: Saturday, July 7, 2018 3:39 PM To: Raymond Yeung Cc: yocto@yoctoproject.org Subject: Re: [yocto] Any Linux/Yocto Image Installer (for target system) The easiest thing would be to edit the installer script that goes into the hddimg to create your extra partitions and whatever else you want done. Ross On 6 July 2018 at 22:52, Raymond Yeung wrote: > Is there any installer that I could download along with the .hddimg (or > .iso) image to the RAM, invoke the installer, so we could have a bootable > image installed on a SSD? > > > History: > > I can already create USB live image with dd and .hddimg. I could also dd > the .hddimg onto SSD and make it bootable. The problem is that I need > multiple partitions on my 250MB SSD, some reserved for other purposes. > > > I find that when booting up with USB running SysLinux, I could install GRUB, > vmlinuz, along with boot.img and core.img under /boot directory, and the > rootFs under root (i.e. '/') directory. That's 4 partitions. I believe I > could resize the largest partition after installation to do what I want. > > > Is there a way to do this manually, possibly with a utility or a shell > script? > > > Thanks, > > Raymond > > > -- > ___ > yocto mailing list > yocto@yoctoproject.org > https://lists.yoctoproject.org/listinfo/yocto yocto Info Page<https://lists.yoctoproject.org/listinfo/yocto> lists.yoctoproject.org Discussion of all things about the Yocto Project. Read our Community Guidelines or learn more about how to participate in other community discussions. Subscribe before posting to bypass moderation. > -- ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
Re: [yocto] Any Linux/Yocto Image Installer (for target system)
The easiest thing would be to edit the installer script that goes into the hddimg to create your extra partitions and whatever else you want done. Ross On 6 July 2018 at 22:52, Raymond Yeung wrote: > Is there any installer that I could download along with the .hddimg (or > .iso) image to the RAM, invoke the installer, so we could have a bootable > image installed on a SSD? > > > History: > > I can already create USB live image with dd and .hddimg. I could also dd > the .hddimg onto SSD and make it bootable. The problem is that I need > multiple partitions on my 250MB SSD, some reserved for other purposes. > > > I find that when booting up with USB running SysLinux, I could install GRUB, > vmlinuz, along with boot.img and core.img under /boot directory, and the > rootFs under root (i.e. '/') directory. That's 4 partitions. I believe I > could resize the largest partition after installation to do what I want. > > > Is there a way to do this manually, possibly with a utility or a shell > script? > > > Thanks, > > Raymond > > > -- > ___ > yocto mailing list > yocto@yoctoproject.org > https://lists.yoctoproject.org/listinfo/yocto > -- ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
Re: [yocto] Any Linux/Yocto Image Installer (for target system)
I tried poky/scripts/contrib/mkefidisk.sh. It showed promised as 3 primary partitions are created on my SSD instead of just 1 when I used dd to write .hddimg. However, I ran into a number of failures when I ran this script: 1. mktemp fails, as the .sh uses 3 "X" instead of 6 "X" as temporary directory suffix. 2. Failures that look like this: udevd[1140]: inotify_add_watch(6, /dev/sda1, 10) failed: No such file or directory". My SSD is mounted as /dev/sda, while at the time I've a USB as boot device to boot the system up. When I activate the SSD image, I have this USB device removed first, so SSD should come up as /dev/sda. Yet, boot fails, with a blank screen. Any idea what might have gone wrong? From: Raymond Yeung Sent: Friday, July 6, 2018 2:52 PM To: yocto@yoctoproject.org Subject: Any Linux/Yocto Image Installer (for target system) Is there any installer that I could download along with the .hddimg (or .iso) image to the RAM, invoke the installer, so we could have a bootable image installed on a SSD? History: I can already create USB live image with dd and .hddimg. I could also dd the .hddimg onto SSD and make it bootable. The problem is that I need multiple partitions on my 250MB SSD, some reserved for other purposes. I find that when booting up with USB running SysLinux, I could install GRUB, vmlinuz, along with boot.img and core.img under /boot directory, and the rootFs under root (i.e. '/') directory. That's 4 partitions. I believe I could resize the largest partition after installation to do what I want. Is there a way to do this manually, possibly with a utility or a shell script? Thanks, Raymond -- ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
[yocto] Any Linux/Yocto Image Installer (for target system)
Is there any installer that I could download along with the .hddimg (or .iso) image to the RAM, invoke the installer, so we could have a bootable image installed on a SSD? History: I can already create USB live image with dd and .hddimg. I could also dd the .hddimg onto SSD and make it bootable. The problem is that I need multiple partitions on my 250MB SSD, some reserved for other purposes. I find that when booting up with USB running SysLinux, I could install GRUB, vmlinuz, along with boot.img and core.img under /boot directory, and the rootFs under root (i.e. '/') directory. That's 4 partitions. I believe I could resize the largest partition after installation to do what I want. Is there a way to do this manually, possibly with a utility or a shell script? Thanks, Raymond -- ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto