mirror of
				git://git.openwrt.org/openwrt/openwrt.git
				synced 2025-10-31 14:04:26 -04:00 
			
		
		
		
	Hardware specification
 ----------------------
 * RTL8382M SoC, 1 MIPS 4KEc core @ 500MHz
 * 128MB DRAM
 * 32MB NOR Flash
 * 16 x 10/100/1000BASE-T ports
    - Internal PHY with 8 ports (RTL8218B)
    - External PHY with 8 ports (RTL8218B)
 * 4 x Gigabit RJ45/SFP Combo ports
    - External PHY with 4 SFP ports (RTL8214FC)
 * Power LED
 * Reset button on front panel
 * UART (115200 8N1) via unpopulated standard 0.1" pin header marked J6
 UART pinout
 -----------
  [o]ooo|J6
   | ||`------ GND
   | |`------- RX
   | `-------- TX
   `---------- Vcc (3V3)
 Boot initramfs image from U-Boot
 --------------------------------
  1. Press Escape key during `Hit Esc key to stop autoboot` prompt
  2. Press CTRL+C keys to get into real U-Boot prompt
  3. Init network with `rtk network on` command
  4. Load image with `tftpboot 0x8f000000 openwrt-realtek-rtl838x-d-link_dgs-1210-20-initramfs-kernel.bin` command
  5. Boot the image with `bootm` command
To install, upload the sysupgrade image to the OEM webpage or sysupgrade
from the system running from initramfs image.
It has been developed and tested on device with F1 revision.
Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
[correct initramfs image name]
Signed-off-by: Sander Vanheule <sander@svanheule.net>
		
	
			
		
			
				
	
	
		
			53 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			53 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| [ -e /etc/config/ubootenv ] && exit 0
 | |
| 
 | |
| touch /etc/config/ubootenv
 | |
| 
 | |
| . /lib/uboot-envtools.sh
 | |
| . /lib/functions.sh
 | |
| 
 | |
| board=$(board_name)
 | |
| 
 | |
| case "$board" in
 | |
| d-link,dgs-1210-16|\
 | |
| d-link,dgs-1210-20|\
 | |
| d-link,dgs-1210-28|\
 | |
| d-link,dgs-1210-10p|\
 | |
| zyxel,gs1900-8|\
 | |
| zyxel,gs1900-8hp-v1|\
 | |
| zyxel,gs1900-8hp-v2|\
 | |
| zyxel,gs1900-10hp|\
 | |
| zyxel,gs1900-16|\
 | |
| zyxel,gs1900-24-v1|\
 | |
| zyxel,gs1900-24e|\
 | |
| zyxel,gs1900-24hp-v1|\
 | |
| zyxel,gs1900-24hp-v2)
 | |
| 	idx="$(find_mtd_index u-boot-env)"
 | |
| 	[ -n "$idx" ] && \
 | |
| 		ubootenv_add_uci_config "/dev/mtd$idx" "0x0" "0x400" "0x10000"
 | |
| 	idx2="$(find_mtd_index u-boot-env2)"
 | |
| 	[ -n "$idx2" ] && \
 | |
| 		ubootenv_add_uci_sys_config "/dev/mtd$idx2" "0x0" "0x1000" "0x10000"
 | |
| 	;;
 | |
| iodata,bsh-g24mb)
 | |
| 	idx="$(find_mtd_index u-boot-env)"
 | |
| 	[ -n "$idx" ] && \
 | |
| 		ubootenv_add_uci_config "/dev/mtd$idx" "0x0" "0x10000" "0x10000"
 | |
| 	idx2="$(find_mtd_index u-boot-env2)"
 | |
| 	[ -n "$idx2" ] && \
 | |
| 		ubootenv_add_uci_sys_config "/dev/mtd$idx2" "0x0" "0x3800" "0x10000"
 | |
| 	;;
 | |
| *)
 | |
| 	idx="$(find_mtd_index u-boot-env)"
 | |
| 	[ -n "$idx" ] && \
 | |
| 		ubootenv_add_uci_config "/dev/mtd$idx" "0x0" "0x10000" "0x10000"
 | |
| 	idx2="$(find_mtd_index u-boot-env2)"
 | |
| 	[ -n "$idx2" ] && \
 | |
| 		ubootenv_add_uci_sys_config "/dev/mtd$idx2" "0x0" "0x1000" "0x10000"
 | |
| 	;;
 | |
| esac
 | |
| 
 | |
| config_load ubootenv
 | |
| config_foreach ubootenv_add_app_config
 | |
| 
 | |
| exit 0
 |