Skip to content

Instantly share code, notes, and snippets.

@changtimwu
Last active February 27, 2016 07:53
Show Gist options
  • Select an option

  • Save changtimwu/2e96aa66a69e66512979 to your computer and use it in GitHub Desktop.

Select an option

Save changtimwu/2e96aa66a69e66512979 to your computer and use it in GitHub Desktop.
ARX-3303 renew procedure

Board 1.0

from top to bottom

*Serial

  • Debug
  • A
  • B
  • I For digging data, you should try Debug port first.

Check files

  • have /etc/config/sysbase.cfg
  • have /usr/sbin/sysbase.sh
#!/bin/sh
cat /etc/sysbase.cfg
  • modify /etc/init.d/frsinit.sh
. /etc/sysbase.cfg
ip link set eth1 address $hwaddr
  • update /usr/sbin/flxredsv
  • have /etc/init.d/shelld
cd /etc/rcS.d
ln -s ../init.d/shelld S41shelld

In /home/root

  • install redcor
  • install webdist
  • install arxcli

Others:

  • have /etc/init.d/mmsd
  • copy /usr/local/sbin/mmsd
  • copy /usr/bin/socat
  • copy /usr/sbin/sysbase.sh
  • copy /etc/init.d/networking (ensure interface lo is there)
  • rm -rf /home/root/altera
  • copy /usr/sbin/flxredsv
  • copy phyrw and ensure it can write phy
phyrw 0 16 3
phyrw 0 16
@changtimwu
Copy link
Author

partition images in archive2 look ok but the flash write script

timwu@timwu-vbox:/var/lib/tftpboot/altera/archive2$ more writeall.sh
#!/bin/sh
echo "writing preloader"
flashcp preloader-mkpimage.bin  /dev/mtd0
echo "writing ubootenv"
flashcp ubootenv.dat   /dev/mtd1
echo "writing DTD"
flashcp irx3303.dtb   /dev/mtd2
echo "writing uboot"
flashcp ubootok.bin   /dev/mtd3
echo "writing kernel"
flashcp zImage /dev/mtd4
echo "writing RBF"
flashcp frsrefc5.rbf /dev/mtd5
echo "writing File system"
flashcp fsmtd6.dat /dev/mtd6
sync;sync;sync
echo "done"

it's single partitioned.

root@cyclone5:~# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 04000000 00010000 "Partition_000"

find offset options of mtdrw

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment