#make menuconfig
<M>
Ralink hello module
5. Compile the source code
#make dep
#make
6. Test
/ # insmod hello
hello world
/ #
9.7 Execute commands at boot up time
Edit RT288x_SDK/source/vendors/Ralink/RT2880/rcS
#!/bin/sh
mount –a
goahead& <-- add new command here
9.8 Add new files in RootFs
If you execute the "make clean" script, it will delete RT288x_SDK/source/romfs directory.
You cannot copy the file to RT288x_SDK/source/romfs manually because it will disappear after
executing "make clean".
Example: add xxx.bin to rootfs
a. copy xxx.bin to RT288x_SDK/source/vendors/Ralink/{RT2880/RT3052/RT3883}
b. edit RT288x_SDK/source/vendors/Ralink/{RT2880/RT3052/RT3883}/Makefile
romfs:
$(ROMFSINST) /etc_ro/xxx.bin
The script will copy xxx.bin to RT288x_SDK/source/romfs/etc_ro after executing "make romfs"
9.9 Image DownSize
RALINK AP SDK 3.3.0.0 User's Manual
Page 46 of 93