Reflash Raspberry with SquashFS

I've got a little problem which makes me confused.

I create a custom OpenWrt image, i follow all build instructions and i can create a running image for a raspberry pi 2 model b. I use the git sources from branch 23-05.

I can make modifications and i can flash the new ext4 image onto my sd card. I boot the raspberry and everthing works fine.

So, i use the created SquashFS image, i flash it to the sd card, the raspberry boots and it do all firstboot actions. Everything works fine.

So, now my problem. I do some modifications at custom files and i use make to rebuild the image. I use the new created squashfs image for my sd card.
I boot the raspberry with the newly flashed disk, but the firstboot actions are not done and the old configuration is not overwriten.

I can reflash with the squashfs image, but the raspberry device holds the files and does not change the configuration.

Has anyone any ideas what i am doing wrong?

Greetings, Tom

How exactly do you "use the new created squashfs image for my sd card"?

That was on the ext4 card.

It is, practically, impossible to clean those; it is easier to flash it with Raspberry OS and then flash back to OpenWrt.

If it was a SquashFS install just run firstboot then reboot.

I do it with "make -j$(nproc)" in buildroot.
I also test with "make -j$(nproc) defconfig download clean world" but also same result.

The problem only with squashfs. I don't want to fire manually "firstboot && reboot". So i am searching for my mistake...

I added an init.d script which detects the boot state. I save the state to the uci config and if we are in firstboot state, i fire firstboot && reboot.

That was the only solution which worked for me.

Can be close now. Thx all.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.