Starting SDR using bitminer firmware (Angstrom linux)

Don’t forget to use sync command to save changes!

First of all change jumpers to boot from nand flash. (First page of the schematic pdf, check https://enthru.net/?p=2965).

Press any key in uart terminal while booting and enter following commands to boot system in single user:

nand read 0x2000000 0x1100000 ${kernel_size}
nand read 0x3000000 0x1020000 ${devicetree_size}
setenv bootargs 'noinitrd mem=496M console=ttyPS0,115200 root=ubi0:rootfs ubi.mtd=1 rootfstype=ubifs rw rootwait init=/bin/sh'
bootm 0x2000000 - 0x3000000


Some boards have 1Gb memory instead of 512Mb so instead of 3d command use this one or it will be stuck on "booting kernel":

setenv bootargs 'noinitrd mem=1008M console=ttyPS0,115200 root=ubi0:rootfs ubi.mtd=1 rootfstype=ubifs rw rootwait init=/bin/sh'

Change root password using command:

passwd

Remove bitminer software from autostart:

cd /etc/rcS.d/

rm S100monitor-ipsig.sh S37bitmainer_setup.sh S50avahi S60lighttpd S70bmminer.sh S70monitor-recobtn S80agent.sh S81agent-monitor.sh

Some startup files may be missed on some systems, so just ignore error if some of them not found.

Remove following lines from /etc/inittab or remove those files specified in lines:

dcdc:2345:respawn:/sbin/monitorcg

cphy:2345:once:/sbin/check_phy.sh

rrst:2345:once:/sbin/reset.sh

Command to remove files:

rm /sbin/monitorcg /sbin/check_phy.sh /sbin/reset.sh

Allow root user to login from uart (not neccesarry) commenting this line in file /etc/pam.d/login:

auth [success=ok ignore=ignore user_unknown=ignore default=die] pam_securetty.so

Copy bitstream, server file and start script to sd card (unarchive zip):

Copy bitstream, server file and start script from sd card to board:

mkdir /mnt/flash

cd /mnt/flash

mount /dev/mmcblk0p1 /mnt/flash

cp * /home/root/

Change start script permissions to allow to run it:

chmod 755 /home/root/start.sh

To enable autostart: (don’t forget that it hangs system without external generator):

ln -s /home/root/start.sh /etc/rcS.d/S60start.sh