Can't build cloud9 image
Op 4 mrt. 2012, om 14:02 heeft Gary Thomas het volgende geschreven:
Quoted 44 lines · Koen Kooi
Quoted 43 lines
Op 3 mrt. 2012, om 13:51 heeft Gary Thomas het volgende geschreven:
Quoted 40 lines
OE Build Configuration:
BB_VERSION = "1.15.1" TARGET_ARCH = "arm" TARGET_OS = "linux-gnueabi" MACHINE = "beaglebone" DISTRO = "angstrom" DISTRO_VERSION = "v2012.03-core" TUNE_FEATURES = "armv7a vfp neon cortexa8" TARGET_FPU = "vfp-neon" meta-angstrom = "master:2129eed920364abcc4f3f72d395333a041634e26"meta-oe
meta-efl
meta-gpe
meta-gnome
meta-xfcemeta-initramfs = "master:fdff8697ea2db6254d26510adb7d11e6352d950f" meta-opie = "master:efa3892b20a4ef80274e56e5633ebd62c16f9731" meta-java = "master:d430de31c167cd264be74a1d82af4b732bb915dd" meta-mozilla = "master:5737d9fa26a632a27b2aa760c0d01190f0a17d0e" meta-ti = "master:020b6f893d13e36bccd7a2d8e6a0e6ab5e602450" meta-efikamx = "master:2c09a3a780b23448e8a6ca964256ff7f5ccba65d" meta-nslu2 = "master:3d9fc951b05b4df476374b6fc3085ebac7f293ee"meta-htc
meta-nokia
meta-openmoko
meta-palm = "master:cda19686a2a3573ce50c86733c3469d926124995"
meta-handheld = "master:fa1e6dcb524eb7ed29a6cd971a150d35c31e96e7"
meta-intel
meta-sugarbay
meta-crownbay
meta-emenlow
meta-fishriver
meta-jasperforest
meta-n450 = "master:df18b721f86f0737c0f302e49b27ea232c70e683"
meta = "master:b24d4bcde21b013e48eaffea5f3a70d8b1df1047"Building of cloud9-image ends up with this error:
/etc/fstabentries need to be created with the user flag for the loop devices like:
/dev/loop2/local/new-angstrom/build/tmp-angstrom_2010_x-eglibc/work/beaglebone-angstrom-linux-gnueabi/cloud9-image-1.0-r0/tmp-mnt-boot vfat user 0 0
Quoted 8 lines
Quoted 5 lines
Quoted 3 lines
My host is Fedora-16 (i386)
How do I solve this so I can build the full cloud9-image?
At the risk of responding to a practical joke:
/etc/fstabentries need to be created with the user flag for the loop devices, the error message even includes the exact entry you need to add.I see that, but what if I'm "Joe user" who can't (or doesn't want to) edit
/etc/fstab?
Then you can't build this image.
Quoted 2 lines
Everything else builds with no special "root" style
privileges, why does this one image need it?
Simply put: because the tools suck. A this point in time there is no tool (or tools plural) that allows creating 2 partitions (vfat and extX) and concatenating them into a valid image with an MBR. The biggest lack is something like 'genfatfs', mcopy is a step in the right direction but is too limited to work in this scenario. And genext2fs will likely OOM on a lot of buildmachines.
Quoted 2 lines
Also, what if I build
in another tree/path? Now, I have to edit/etc/fstabagain?
Correct, it's the gift that keeps on giving :(
Anyway, why are you posting this to the angstrom list? The cloud9 recipe and offending bbclass live in meta-ti.
Quoted 56 lines · Koen Kooi
Op 4 mrt. 2012, om 14:02 heeft Gary Thomas het volgende geschreven:
Quoted 44 lines · Koen Kooi
Quoted 43 lines
Op 3 mrt. 2012, om 13:51 heeft Gary Thomas het volgende geschreven:
Quoted 40 lines
OE Build Configuration:
BB_VERSION = "1.15.1" TARGET_ARCH = "arm" TARGET_OS = "linux-gnueabi" MACHINE = "beaglebone" DISTRO = "angstrom" DISTRO_VERSION = "v2012.03-core" TUNE_FEATURES = "armv7a vfp neon cortexa8" TARGET_FPU = "vfp-neon" meta-angstrom = "master:2129eed920364abcc4f3f72d395333a041634e26"meta-oe
meta-efl
meta-gpe
meta-gnome
meta-xfcemeta-initramfs = "master:fdff8697ea2db6254d26510adb7d11e6352d950f" meta-opie = "master:efa3892b20a4ef80274e56e5633ebd62c16f9731" meta-java = "master:d430de31c167cd264be74a1d82af4b732bb915dd" meta-mozilla = "master:5737d9fa26a632a27b2aa760c0d01190f0a17d0e" meta-ti = "master:020b6f893d13e36bccd7a2d8e6a0e6ab5e602450" meta-efikamx = "master:2c09a3a780b23448e8a6ca964256ff7f5ccba65d" meta-nslu2 = "master:3d9fc951b05b4df476374b6fc3085ebac7f293ee"meta-htc
meta-nokia
meta-openmoko
meta-palm = "master:cda19686a2a3573ce50c86733c3469d926124995"
meta-handheld = "master:fa1e6dcb524eb7ed29a6cd971a150d35c31e96e7"
meta-intel
meta-sugarbay
meta-crownbay
meta-emenlow
meta-fishriver
meta-jasperforest
meta-n450 = "master:df18b721f86f0737c0f302e49b27ea232c70e683"
meta = "master:b24d4bcde21b013e48eaffea5f3a70d8b1df1047"Building of cloud9-image ends up with this error:
/etc/fstabentries need to be created with the user flag for the loop devices like:
/dev/loop2/local/new-angstrom/build/tmp-angstrom_2010_x-eglibc/work/beaglebone-angstrom-linux-gnueabi/cloud9-image-1.0-r0/tmp-mnt-boot vfat user 0 0Quoted 8 lines
Quoted 5 lines
Quoted 3 lines
My host is Fedora-16 (i386)
How do I solve this so I can build the full cloud9-image?
At the risk of responding to a practical joke:
/etc/fstabentries need to be created with the user flag for the loop devices, the error message even includes the exact entry you need to add.I see that, but what if I'm "Joe user" who can't (or doesn't want to) edit
/etc/fstab?
Quoted 7 lines
Then you can't build this image.
Quoted 2 lines
Everything else builds with no special "root" style
privileges, why does this one image need it?Simply put: because the tools suck. A this point in time there is no tool (or tools plural) that allows creating 2 partitions (vfat and extX) and concatenating them into a valid image with an MBR. The biggest lack is something like 'genfatfs', mcopy is a step in the right direction but is too limited to work in this scenario. And genext2fs will likely OOM on a lot of buildmachines.
But this is just to be able to generate a packed image that can be copied directly to media? Maybe that should be a different image type, like the .u-boot images? Then it would be obvious what's being done and why. In my case, I'm more than happy running a script to copy the appropriate files to my SD card, etc. and I don't care (nor especially want) a packed image.
Quoted 7 lines
Quoted 3 lines
Also, what if I build
in another tree/path? Now, I have to edit/etc/fstabagain?Correct, it's the gift that keeps on giving :(
Anyway, why are you posting this to the angstrom list? The cloud9 recipe and offending bbclass live in meta-ti.
Fair enough, I'll try to keep the discussions where they are most relevant.
Signature · 4 lines
------------------------------------------------------------ Gary Thomas | Consulting for the MLB Associates | Embedded world ------------------------------------------------------------
Quoted 19 lines · Gary Thomas
Quoted 3 lines · Koen Kooi
Op 4 mrt. 2012, om 14:02 heeft Gary Thomas het volgende geschreven:
Quoted 2 lines · Koen Kooi
Quoted 1 line
Op 3 mrt. 2012, om 13:51 heeft Gary Thomas het volgende geschreven:
this so I can build the full cloud9-image?
Quoted 6 lines
Quoted 5 lines
Quoted 2 lines
At the risk of responding to a practical joke:
/etc/fstabentries need to be created with the user flag for the loop devices, the error message even includes the exact entry you need to add.I see that, but what if I'm "Joe user" who can't (or doesn't want to) edit
/etc/fstab?Quoted 7 lines
Then you can't build this image.
Quoted 2 lines
Everything else builds with no special "root" style
privileges, why does this one image need it?Simply put: because the tools suck. A this point in time there is no tool (or tools plural) that allows creating 2 partitions (vfat and extX) and concatenating them into a valid image with an MBR. The biggest lack is something like 'genfatfs', mcopy is a step in the right direction but is too limited to work in this scenario. And genext2fs will likely OOM on a lot of buildmachines.
Quoted 6 lines
But this is just to be able to generate a packed image that can be copied directly to media? Maybe that should be a different image type, like the .u-boot images? Then it would be obvious what's being done and why. In my case, I'm more than happy running a script to copy the appropriate files to my SD card, etc. and I don't care (nor especially want) a packed image.
Just for reference, the directdisk stuff that was in OE-Core did something like this (create an MBR with a couple of partitions following it). It was removed as having some minor bugs and being unneeded but the code might prove an interesting starting point to addressing this problem. To come back, it would need to be a proper IMAGE_FSTYPES entry.
Cheers,
Richard
Op 4 mrt. 2012, om 14:55 heeft Richard Purdie het volgende geschreven:
Quoted 27 lines · Gary Thomas
Quoted 19 lines · Koen Kooi
Quoted 3 lines
Op 4 mrt. 2012, om 14:02 heeft Gary Thomas het volgende geschreven:
Quoted 2 lines · Koen Kooi
Quoted 1 line
Op 3 mrt. 2012, om 13:51 heeft Gary Thomas het volgende geschreven:
this so I can build the full cloud9-image?
Quoted 6 lines
Quoted 5 lines
Quoted 2 lines
At the risk of responding to a practical joke:
/etc/fstabentries need to be created with the user flag for the loop devices, the error message even includes the exact entry you need to add.I see that, but what if I'm "Joe user" who can't (or doesn't want to) edit
/etc/fstab?Quoted 7 lines
Then you can't build this image.
Quoted 2 lines
Everything else builds with no special "root" style
privileges, why does this one image need it?Simply put: because the tools suck. A this point in time there is no tool (or tools plural) that allows creating 2 partitions (vfat and extX) and concatenating them into a valid image with an MBR. The biggest lack is something like 'genfatfs', mcopy is a step in the right direction but is too limited to work in this scenario. And genext2fs will likely OOM on a lot of buildmachines.
Quoted 6 lines
But this is just to be able to generate a packed image that can be copied directly to media? Maybe that should be a different image type, like the .u-boot images? Then it would be obvious what's being done and why. In my case, I'm more than happy running a script to copy the appropriate files to my SD card, etc. and I don't care (nor especially want) a packed image.
Quoted 5 lines
Just for reference, the directdisk stuff that was in OE-Core did something like this (create an MBR with a couple of partitions following it). It was removed as having some minor bugs and being unneeded but the code might prove an interesting starting point to addressing this problem. To come back, it would need to be a proper
IMAGE_FSTYPESentry.
When I last tried to use that code it created images incompatible with the boot ROM used in TI SoCs :(
regards,
Koen