-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NOOBS image does not build #180
Comments
Just to update... The deploy folder is never created in the process either. I do get my normal export image in the work folder. |
Do you have appropriate stage*/EXPORT_NOOBS files? If so, could you please post their content your build.log (found in the work directory). |
Yes, I do have the EXPORT_NOOBS files. For the sake of troubleshooting I downloaded the most recent version of the repository and it won't even build completely. I've attached EXPORT_NOOBS from stage 5 (I changed the extension so Github would take it) and the complete build.log. Below is just the section relevant to the export process... That's not a copy / paste error, the log ends at begin 01-run.sh. 02:53:53] Begin /home/pi/Desktop/pi-gen-nov/export-image |
Oh right, forgot what you said in the forum thread. You're downloading the archive of this repo rather than doing a proper git clone, right? If so, that would be the problem. |
No, both cloning and downloading releases are failing. At first I got I broke something in my clone, but even fresh clones are no good. I think this all started after the commit 93db373 on March 28th... Literally I went everything working fine to being broke. I think the problem lies in export-image/04-finalise/01-run.sh. Between stopping the HW clock and creating the deploy folder is the chunk of code connecting to Github for information. This VM has an unrestricted internet connection so doubt it's a firewall issue. |
In export-image/04-finalise/01-run.sh, could you put 'set -x' near the start of the file, run the build and then paste the last chunk of output? |
Build Env: QEMU running Debian 9u4 Updated: |
Okay it just finished running and here's what I got:
|
@XECDesign Device Boot Start End Sectors Size Id Type Command (m for help): The partition table has been altered. /boot: offset 4194304, length 512 END PASTE Perhaps Im just nuts but, or perhaps im just nuts AND |
Here's a better copy paste of whole event: [16:07:56] Begin /home/dev1/NEWCLONE_4.24.2018/pi-gen/export-image/03-set-partuuid/00-run.sh Welcome to fdisk (util-linux 2.29.2). Device does not contain a recognized partition table. Command (m for help): Created a new DOS disklabel with disk identifier 0x804ef162. Command (m for help): Partition type Command (m for help): Disk /home/dev1/NEWCLONE_4.24.2018/pi-gen/work/2018-04-24-TestBuild20180424/export-image/2018-04-24-TestBuild20180424-4GB.img: 800 MiB, 838860800 bytes, 1638400 sectors Device Boot Start End Sectors Size Id Type Command (m for help): Selected partition 1 Command (m for help): Partition type Command (m for help): Command (m for help): Device Boot Start End Sectors Size Id Type Command (m for help): The partition table has been altered. /boot: offset 4194304, length 512 END PASTE Take what I suggest with a grain of salt, as I've just started looking at this and I may not understand whats happening or intended to happen. That being said this part doesnt look right to me:
|
Also note, I personally have no issue as I can work around the n00bs issue and build as "lite" for my needs mostly, I'm just trying to help on what I noticed before about a 512byte part that seemed strange. |
@kelsieflynn I take it you made that clone today? What's your build environment? I'm going to spin up a fresh VM just to see if I do fail in the same spot or if I can make it as far as you. |
Qemu virt running debian 9update4 debian-9.4.0-amd64-xfce-CD-1.iso Which is in the cd image repos. After installing Anywho, I can build lites just fine. I'll leave the rest of the this to the real devs, which I am not. In all sincerity, I'm really new to the debian building system and raspbian. root@deb9u4-rpi-gendev:/home/dev1/NEWCLONE_4.24.2018/pi-gen# ls -al deploy/ |
I have a fresh clone running in a new Raspbian VM, let's see how this goes... It looks like the mirrors are a little slow today so it's taking a while. (FYI, not a Linux developer at all... I'm hardware only) |
I think I see more about what failed on my setup and why it only got a 512 byte boot part when trying to create the last image. "[16:22:18] Begin /home/dev1/NEWCLONE_4.24.2018/pi-gen/export-image/prerun.sh It appears to me that in the code below is where the BOOT size is set : From :
It makes sense to me why mine failed as why du complained first and why because without my old Real question might be now, why did my boot chroot close after it created the "lite" stage and if it did close, why cant the noobs stage reopen? Did a loopback just go missing from losetup? On follow up: Here's the stale mounts I have left over, maybe this will help the devs: /dev/loop1: [2054]:2237732 (/home/dev1/NEWCLONE_4.24.2018/pi-gen/work/2018-04-24-TestBuild20180424/export-image/2018-04-24-TestBuild20180424-4GB.img), offset 8388608, sizelimit 830472192 I think i've surely exhausted all i can do on this at this point since from my understanding: To make it even funner to figure out when fdisk first created the relevant part /boot, it appears as if it should have gotten larger than 512B because it choose the default 16383399 for end "Partition number (1-4, default 1): First sector (2048-1638399, default 2048): Last sector, +sectors or +size{K,M,G,T,P} (8192-1638399, default 1638399):" I like a good math/syntax mystery myself, so i'll be following up to see what the deal is/was. Hope this helps. |
@dlabun that really looks like you're not running it from a git cloned directory. The failing line is What does |
I started from scratch last night and everything is working correctly now... The only thing I could figure is that the something on my system became corrupt and was causing the script to think it wasn't a git clone directory. Is running the tool on Raspbian advisable or should I be doing it elsewhere? |
I haven't used it under Raspbian since writing the initial version, so I don't know if it still works. Current stable releases of Debian and Ubuntu should work. |
Im still curious about what happens when I build it as lite. I'll rebuild mine fresh again today without the SKIP files and see if it creates the noobs portion in my setup, perhaps thats how its suppose to work in a lite build, duh. I have used both debian 9u4 and ubuntu LTS(latest) both, but deb9u4 seems to work better for me. Eitherway, as mentioned before, I dont really have a problem with the script myself as I'm not using the noobs portion but I would still like to understand what I'm missing in my understanding here, though its likely isolated to my setup. |
@kelsieflynn I've tried to skim through your posts for relevant information, but I'm struggling to understand what the problem is. You said you added SKIP files for stages 3, 4 & 5, and then your lite images build fine? Yet, it looks like you're still trying to export later stages (which of course wouldn't work if you haven't built them). Have you deleted the EXPORT* files from those later stages? A short summary with the relevant error messages would be helpful. |
@XECDesign What appeared to be a problem may have been my curiosity going wild, as to how the script works when creating the noobs portion. All's good here though, script works great. I dont have to tell you this script is great as you all can tell from the # of forks. But anyway, its great, all I need now is my local mirrors of the repos setup or at least a deb squid cache. |
Oh, alright. Thanks, I'm glad you've found it useful. |
Sorry for the noise, Everyone struggles following me, mostly because i have a little bit of ADHD, talk to myself often, answer back often, and I go on long curiosity tangents. Its all part of how I roll. |
No worries. You do you. |
@dlabun okay to close? |
Absolutely, thanks for the help! |
I ran into this issue today. I have Would the team be interested to move setting and passing on |
Passing from where? |
Something like this where This would also allow overriding this in the build config file. |
Ah, passing FROM build.sh rather than TO build.sh? Yeah, if it solves the problem, why not. |
I am not sure what's changed recently, I am not getting a NOOBS image when running Pi-Gen. I've tried several times running the vanilla version straight off Github on a clean installation of Raspbian running in VMware and the image is never generated.
From looking at the build log, there's absolutely nothing that indicates the NOOBS image scripts were executed.
The text was updated successfully, but these errors were encountered: