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
|
Creating a current armbian-Image with network-fix - clusterDude - 06-26-2020 I recently got my sopine modules and my clusterboard only to notice that the network is not working. So I searched the forums and found a way to conveniently build an Armbian-Image which has the network fix applied (using Ubuntu): I tested this with the current Armbian Focal release. Thanks to @AZClusterboard who made an initial guide on how to setup the clusterboard which gave me confidence to buy my own cluster! Step [b]Overview:[/b]
Step number 5 is not necessary but it helps in identifying sopine modules by name. So you can boot all modules at once, look at a "nmap" printout and can see each hostname and the corresponding ip-adress. More thorough explanation of the steps: 1. Download current Armbian Focal release (https://www.armbian.com/sopine-a64/) 2. Mount the Image to make modifications (more informations here) 2.1. create a dir to mount the image to: e.g. Code: sudo mkdir /mnt/img 2.2. find the location of the partition within the image Code: fdisk -l <armbian-image.img> Code: 512 bytes/sector * 8292 sectors =4194304 bytes 2.3. mound the image at the correct sector to the created directory in /mnt/img Code: sudo mount -o loop,rw,sync,offset=4194304 <armbian-image.img> /mnt/img 3. Make changes to the .dtb file 3.1. navigate to the correct .dtb file Code: cd /mnt/img/boot/dtb/allwinner/ 3.2. Now we need to translate the .dtb file. To do so we change it into a modifiable state using dtc. The file we want to change is sun50i-a64-sopine-baseboard.dtb (see here). I will name this modifiable file "temp.dts". This command will most likely throw some warnings but it will work. Code: sudo dtc -I dtb -O dts -o temp.dts sun50i-a64-sopine-baseboard.dtb 3.3. apply the fix to temp.dts described here Code: sudo nano temp.dts go to the segment Code: ethernet@1c30000 and add Code: allwinner,tx-delay-ps = <500>; as described here [LINK] It will then look similar to Code: ethernet@1c30000 { 3.3. translate the modified .dts to and .dtb file and overwrite the old(faulty) .dtb-file. This command will produce some warnings, but it will work. Code: sudo dtc -O dtb -o sun50i-a64-sopine-baseboard.dtb -b 0 temp.dts 3.4. remove the temp.dts Code: sudo rm temp.dts 3.5. unmount the image, go to your home directory first, so the unmount process is successful Code: cd ~/ 4. The image is now ready to be written to a sd-card! 5. To change the hostname of each "sd-card" After the sd-card is written, mount the sd-card and navigate Code: cd etc/ and change 2 files: [1]In hostname, specify a hostname (old one is most likely "pine64so") you like (probaly something like "master" or "worker1" or "worker2" ...), [2] in hosts, change every entry with the old hostname to your new hostname. Save the changes made to both files, unmount you sd-card, put it in the sopine-module, wait for it to boot (may take some minutes), login with "root" and "1234" and enjoy your cluster! If you have any questions, comments or suggestions for improvement let me know! RE: Creating a current armbian-Image with network-fix - poVoq - 06-26-2020 Thanks a lot for creating this guide! Edit: Anyone got a easy guide to network boot the 6 other modules from the first one and eMMC? RE: Creating a current armbian-Image with network-fix - poVoq - 08-15-2020 Any idea why this might not work with an emmc? First it seems like I had a faulty SD, but with a new SD it works now. However my 128GB emmc installed the same way still doesn't seem to boot. RE: Creating a current armbian-Image with network-fix - clusterDude - 08-15-2020 (08-15-2020, 07:26 AM)poVoq Wrote: Any idea why this might not work with an emmc? I think booting from emmc needs a whole different procedure. https://forum.pine64.org/showthread.php?tid=5549 I don't have an emmc module, so I can't test anything. RE: Creating a current armbian-Image with network-fix - lbruno - 08-15-2020 If anyone else is fighting with the Armbian forum and it doesn't load, here's the cached version: https://webcache.googleusercontent.com/search?q=cache:https://forum.armbian.com/topic/9402-ethernet-not-working-on-sopine-module/ important bit: Quote:Add RE: Creating a current armbian-Image with network-fix - cornfield23 - 08-16-2020 Thanks for this. I've translated this into steps for NixOS for those who need it https://nixos.wiki/wiki/NixOS_on_ARM/PINE_A64-LTS#Clusterboard_Ethernet RE: Creating a current armbian-Image with network-fix - Dippywood - 09-04-2020 This worked a treat for me :-) - thank you for providing the details. For those for which this may be relevant, it even works properly in WSL on a Windows machine (heresy, I know, but needs must). Has a patch be submitted for the up-stream, so that updating does not break things? RE: Creating a current armbian-Image with network-fix - Dippywood - 09-07-2020 Hi, In order to make this a a little more update resistant, you might find the following script useful Code: #!/bin/bash This will check whether the supplied update is in place, and, if not, apply it using SED. How you use this is up to you - perhaps putting a call to it in rc.local... If the card boots, and the fix is not present then it will be applied and all should be well for the next boot. If you want to test it first on a mounted image, simply adjust the value of DTB_PATH. I hope that it is found useful, but use as your own risk, no guarantees of any sort etc etc RE: Creating a current armbian-Image with network-fix - hvdkooij - 11-09-2020 Some silly questions from my side as I am contemplating into buying a clusterboard with 7 "blades". 1. Didn't someone put a fixed image online to make things easier? 2. Is the fix not being procesed as part of the normal fixes tht should be applined to images? After all it seem such a small fix. Regards, Hugo. RE: Creating a current armbian-Image with network-fix - poVoq - 11-09-2020 I think the problem might be that the normal break out board and the Pine64 SBC work slightly different from the Clusterboard and the Armbian image is made for those. However following the above description really is quite easy and works well with my clusterboard. Sorry I don't think anyone uploaded the fixed image. |