background image

DSH-G300

 

                          

D-Link Corporation

 

 

 

Page 

 

firstly. 

Run kernel menuconfig and select jffs2 option, then save it. 
$ cd DSHG300_A1_GPLv100b01/kernels/MT7688_linux-2.6.36.x 
$ make menuconfig 
 
File systems  ---> 
    Miscellaneous filesystems  ---> 
         <*> Journalling Flash File System v2 (JFFS2) support 
         (0)   JFFS2 debugging verbosity (0 = quiet, 2 = noisy) 
         [*]   JFFS2 write-buffering support 
         [ ]   JFFS2 summary support (EXPERIMENTAL)  
         [ ]   JFFS2 XATTR support (EXPERIMENTAL)  
         [ ]   Advanced compression options for JFFS2 
         <*> Compressed ROM file system support (cramfs) 

 

Copy kernel config into boards folder. 
$ cp .config ../../boards/wrgn104/kernel.config 

 

add mtd partition 

Modify mtd partition map in file: 
DSHG300_A1_GPLv100b01/kernels/MT7688_linux-

2.6.36.x/drivers/mtd/ralink/ralink_bbu_spi.c 

This is a sample which add a mtd partition named by “test”, 

and size of this partition is 320k: 

ralink_bbu_spi.c

  

Re-bulid gpl firmware and upgrade gpl firmware into device. 

Содержание DSH-G300

Страница 1: ...DSH G300 D Link Corporation Page 1 DSH G300 Smart Hub Manual Version 1 0 Dec 7th 2017 ...

Страница 2: ...DSH G300 D Link Corporation Page 2 Table of Contents 1 PRODUCT DESCRIPTION 3 2 APPEARANCE 3 3 INSTALLATIONS CONFIGURATIONS 4 ...

Страница 3: ...o Ethernet gateway device that uses a generic hardware design and can be deployed as different versions to fulfil different applications 2 APPEARANCE Top LED Status indicator Wireless button pairing un pairing Rear LAN port Micro USB Power jack Vdc 5V 2 A USB port Bottom Reset button ...

Страница 4: ... yum y update yum y install gcc yum y install zlib devel openssl devel yum y install gcc c yum y install bison yum y install flex yum y install ncurses devel yum y install fakeroot yum y install patch The workstation we used to build the image is OS Version Fedora 22 32 bit version on AMD or Intel system OS Kernel Version 4 1 6 200 fc22 i686 GCC Version 5 3 1 20160406 Red Hat 5 3 1 6 You may use o...

Страница 5: ...n 2 cd home john 3 tar zxvf DSHG300_A1_GPLv100b01 tar gz 4 cd DSHG300_A1_GPLv100b01 5 su ps switch to root permission 6 mkdir opt if opt is already exist skip this step 7 cp rf buildroot gcc463 opt 8 exit ps switch back to normal user permission 9 source setupenv Building the image make make make You are going to build the f w images Both the release and tftp images will be generated Do you want t...

Страница 6: ...ute the default action How to install file into firmware Copy file into rootfs then rebuild gpl firmware by make release cd DSHG300_A1_GPLv100b01 cp test_lib rootfs lib make release Tips If there is not rootfs please using full steps to build firmware firstly How to add a mtd partition enable jffs2 support in kernel config Before this step please using full steps to build firmware ...

Страница 7: ... JFFS2 summary support EXPERIMENTAL JFFS2 XATTR support EXPERIMENTAL Advanced compression options for JFFS2 Compressed ROM file system support cramfs Copy kernel config into boards folder cp config boards wrgn104 kernel config add mtd partition Modify mtd partition map in file DSHG300_A1_GPLv100b01 kernels MT7688_linux 2 6 36 x drivers mtd ralink ralink_bbu_spi c This is a sample which add a mtd p...

Страница 8: ...unt mtd partition test with jffs2 type mount t jffs2 dev mtdblock 6 data Tips1 mtd partition must larger than 320k Tips2 we can add mtd partition by reduce upgrade mtd partition size but upgrade is used to upgrade firmware So we must make sure size of upgrade mtd partition always larger than firmware size Tips3 in gpl v100b04 we auto mount the data mtd partition to data while device boot up How to...

Страница 9: ...DSH G300 D Link Corporation Page 9 Default password is null Enter firmware upgrade page Select firmware file and press Upload button ...

Страница 10: ...it Example is Microsoft cmd tool Device default ip is 192 168 0 50 How to use tftp Tftp can transfer a file from to tftp server This is an exanple tftp server ip is 192 168 0 38 get file from tftp server tftp r get_file txt l get_file txt g 192 168 0 38 put file from tftp server tftp r put_file txt l put _file txt g 192 168 0 38 ...

Страница 11: ...DSH G300 D Link Corporation Page 11 Console define Console connection type is Serial and speed is 57600 ...

Страница 12: ...s connected Consult the dealer or an experienced radio TV technician for help FCC Caution Any changes or modifications not expressly approved by the party responsible for compliance could void the user s authority to operate this equipment This device complies with Part 15 of the FCC Rules Operation is subject to the following two conditions 1 This device may not cause harmful interference and 2 t...

Отзывы: