linux:arm:dockstar
Differences
This shows you the differences between two versions of the page.
Previous revision | |||
— | linux:arm:dockstar [2023/11/24 21:55] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | # OpenWRT on the Dockstar | ||
+ | |||
+ | ## Overview | ||
+ | |||
+ | ## Tools | ||
+ | |||
+ | You will need a Serial terminal and a TFTP server. | ||
+ | |||
+ | sudo aptitude install picocom tftpd-hpa | ||
+ | |||
+ | Configure the TFTP server according to your setup. | ||
+ | |||
+ | ## Files | ||
+ | |||
+ | Download the files for the Dockstar from the OpenWRT repository: \\ https:// | ||
+ | |||
+ | ## Steps | ||
+ | |||
+ | ### Connect | ||
+ | |||
+ | picocom -s 115200 / | ||
+ | ## All Next commands are for the Dockstar | ||
+ | reboot | ||
+ | |||
+ | ### Update U-Boot | ||
+ | |||
+ | setenv serverip 192.168.xxx.xxx | ||
+ | |||
+ | mw 0x800000 0xffff 0x80000 | ||
+ | tftpboot 0x800000 openwrt-kirkwood-dockstar-u-boot.kwb | ||
+ | nand erase 0x000000 0x100000 | ||
+ | nand write.e 0x800000 0x000000 0x80000 | ||
+ | setenv bootcmd nand read.e 0x2000000 0x100000 0x400000\; go 0x2000000 | ||
+ | saveenv | ||
+ | reboot | ||
+ | |||
+ | ### Configure U-Boot | ||
+ | |||
+ | # Update BootCMD | ||
+ | setenv bootcmd ' | ||
+ | setenv ubiboot_n1 ' | ||
+ | | ||
+ | # Reset network config | ||
+ | setenv ipaddr | ||
+ | setenv serverip 192.168.xxx.xxx | ||
+ | setenv netmask 255.255.255.0 | ||
+ | setenv ethaddr ab: | ||
+ | saveenv | ||
+ | |||
+ | ### Flash the RootFS | ||
+ | |||
+ | nand erase 0x200000 0xfe00000 | ||
+ | ubi part root | ||
+ | ubi create rootfs 0xA00000 | ||
+ | tftpboot 0x800000 openwrt-15.05-kirkwood-dockstar-rootfs.ubifs | ||
+ | ubi write 0x800000 rootfs ${filesize} | ||
+ | ubi create rootfs_data | ||
+ | |||
+ | ### Install the Kernel image | ||
+ | |||
+ | ## RAM boot | ||
+ | setenv bootargs ${console} ${mtdparts} ${bootargs_root} | ||
+ | tftpboot 0x800000 openwrt-15.05-kirkwood-dockstar-zImage | ||
+ | bootz 0x800000; | ||
+ | | ||
+ | ## Download and install kernel | ||
+ | mkdir -p /rom/boot | ||
+ | wget -O / | ||
+ | |||
+ | ### Enjoy ! Install some packages | ||
+ | |||
+ | opkg update | ||
+ | opkg install kmod-usb-core kmod-usb-storage block-mount kmod-fs-ext4 kmod-fs-vfat kmod-fs-ntfs kmod-nls-cp437 kmod-nls-iso8859-1 e2fsprogs fdisk kmod-usb2 | ||
+ | |||
+ | ## Links | ||
+ | |||
+ | * [Dockstar page on the OpenWRT wiki](https:// | ||
+ | * | ||