Creating a current armbian-Image with network-fix - Printable Version +- PINE64 (https://forum.pine64.org) +-- Forum: PINE A64-LTS / SOPINE Compute Module (https://forum.pine64.org/forumdisplay.php?fid=66) +--- Forum: Clusterboard (https://forum.pine64.org/forumdisplay.php?fid=91) +--- Thread: Creating a current armbian-Image with network-fix (/showthread.php?tid=10432) Pages:
1
2
|
RE: Creating a current armbian-Image with network-fix - sejersbol - 11-10-2020 Hi, I have no problem modifying the sun50i-a64-sopine-baseboard.dtb file and the fix script by @Dippywood also works like a charm! However, I wanted to execute the fix script from the rc.local script during boot, as @Dippywood suggests. This does not work for me. I placed the script (called it clusterboard_dtb_fix.sh, with execution bit set) in /usr/local/bin and added the line "/usr/local/bin/clusterboard_dtb_fix.sh" to rc.local. (I also tried "sudo /usr/local/bin/clusterboard_dtb_fix.sh" in rc.local). Then I made sure that it worked, by executing the rc.local script when I was logged in on the module. No problem, the rc.local script, and thus fix script, is working when manually executed. Then I tried to look in the log (using journalctl -b) after a reboot and here I see “Nov 10 21:23:30 pine64so rc.local[967]: Fix already in place” so the script is executed during boot! (But not after an apt-get upgrade :-() My best guess is that calling the script from rc.local is too late in the boot process, thus it is not working. Has anybody successfully added a call to rc.local that actually works on boot? Well, I could just remember to execute the fix script after each apt-get upgrade, but it would be so much nicer if it was applied automatic during boot of the module. Kind regards, Anders. RE: Creating a current armbian-Image with network-fix - aww - 01-06-2021 (11-10-2020, 02:41 PM)sejersbol Wrote: Hi, Instead of calling it at boot, it's better to call it as a hook after apt runs. That way it runs the script post upgrade and before it'd be loaded on next boot. I added a file in /etc/apt/apt.conf.d/100update with the contents of: Code: DPkg::Post-Invoke {"/usr/local/bin/fix-network-dtb.sh";}; RE: Creating a current armbian-Image with network-fix - Dippywood - 02-13-2021 (01-06-2021, 09:49 PM)aww Wrote:(11-10-2020, 02:41 PM)sejersbol Wrote: Hi, Since it was late in the process, the rc.local approach required an extra reboot (as mentioned in the original post) - the change to apt.conf.d is a smarter approach. rc.local is old-school - but, there again, so am I :-) In any case, the indications are that this should be moot now - so time for me to test the latest download... RE: Creating a current armbian-Image with network-fix - poVoq - 09-03-2021 Just confirmed this working with the latest Armbian Bullseye (Debian) release. RE: Creating a current armbian-Image with network-fix - langerma - 12-12-2022 is that update dtb thingy still needed if install the boards with the latest kernel? RE: Creating a current armbian-Image with network-fix - poVoq - 05-29-2024 With the Armbian_community_24.8.0-trunk.6_Pine64so_bookworm_current_6.6.31_minimal.img.xz build this is no longer required. |