1. Burned SD card, 4 kb space, u-boot_mmc.bin
Condition: irom_fusing_tool
Note:
① Windows 7 does not support irom_fusing_tool. XP does.
② No matter whether it is burned or not, the space used by the SD card will not increase, always 4 kb
2. Start from the SD card and format nandflash
Condition: dnw Tool
Note:
① Enable dnw, configure the serial port, connect to the serial port, and press the space to power on again
② Dial switch: 1/2/3 feet all dial outward
③ During formatting, if you want to see whether the format is correct, enter y, but it will not be printed on the screen. Press enter directly. Otherwise, an error may occur due to an input error.
3. USB download boot program u-boot.bin File
Condition: USB drive of dnw in Windows
Note: connect the USB cable and load the driver until USB: OK is displayed in the title bar of the window.
4. Download the kernel image zimage file from USB
5. Download The crame file system from USB
6. Copy the qtopia to the SD card and start it from nandflash.
7. Download qtopia from SD card
8. Start from the kernel and import the font file wenqy. TTF
Condition: serial port or network port FTP or network port Telnet + FTP
Note:
① Wenqy. TTF is in the black body. You can also download other open source libraries from the Internet.
② Start from the kernel, dial 1/2 feet inward, 3 feet outward
③ Enter the font directory, delete all the contents, and copy the font to the directory. Directory where the font is located:/usr/local/qteembedded ***/lib/Fonts
9. Linux boot screen setting steps
① Download three tools: pngtopnm, pnmquant, pnmtoplainpnm
② Format conversion:
$ Pngtopnm linuxlogo.png> linuxlogo. PNM
$ Pnmquant 224 linuxlogo. PNM> linuxlogo224.pnm
$ Pnmtoplainpnm linuxlogo224.pnm> linuxlogo224.ppm
③ Replace the generated file with the boot file in the kernel file directory Drivers/Video/logo. The kernel boot screen of this version is named linux_logo_clut224.ppm.
④ Re-compile the kernel (if there are other modifications, You can temporarily not compile it, And then compile it after one modification, such as the backlight setting part)
10. backlight settings for the current 6410 Development Board
Note:Drivers/Video/Samsung/s3cfb. cFile, a total of five modifications
①# Include "s3cfb. H"Add below:
#include <asm/arch/gpio.h>#include <linux/gpio.h>#include <asm/uaccess.h>#include <plat/gpio-cfg.h>#include <plat/regs-gpio.h>#define GPIO_LCD_PWR_CTRL S3C64XX_GPF(15)#define LCD_PWR_CTRL_ON() s3c_gpio_setpin(GPIO_LCD_PWR_CTRL, 0)#define LCD_PWR_CTRL_OFF() s3c_gpio_setpin(GPIO_LCD_PWR_CTRL, 1)
②Void s3cfb_stop_ LCD (void)Function
writel(tmp & ~(S3C_VIDCON0_ENVID_ENABLE | S3C_VIDCON0_ENVID_F_ENABLE), S3C_VIDCON0);
Add below:
LCD_PWR_CTRL_OFF();
③Void s3cfb_start_ LCD (void)Function
writel(tmp | S3C_VIDCON0_ENVID_ENABLE | S3C_VIDCON0_ENVID_F_ENABLE, S3C_VIDCON0);
Add below:
printk("--->>Look--->>%s--->>LCD_PWR_ON !\n", __FUNCTION__);LCD_PWR_CTRL_ON();
④Static int _ init s3cfb_probe (struct platform_device * pdev)Function
goto release_mem;}
Add below:
s3c_gpio_cfgpin(S3C64XX_GPF(15), S3C64XX_GPF_OUTPUT(15));gpio_direction_output(S3C64XX_GPF(15), 1);gpio_set_value(S3C64XX_GPF(15), 1);LCD_PWR_CTRL_OFF();printk("--->>This--->>%s--->>LCD_PWR_Ctrl__Init !\n", __FUNCTION__);
⑤Static int _ init s3cfb_probe (struct platform_device * pdev)Function
s3cfb_set_backlight_level(S3CFB_DEFAULT_BACKLIGHT_LEVEL);
Add below:
s3c_gpio_cfgpin(S3C64XX_GPF(15), S3C64XX_GPF_OUTPUT(15));gpio_direction_output(S3C64XX_GPF(15), 1);gpio_set_value(S3C64XX_GPF(15), 0);LCD_PWR_CTRL_ON();printk("--->>This,--->>%s--->>LCD_PWR_Ctrl First ON !\n", __FUNCTION__);
Note:
① The existing two versions of the kernel, 0315 and 0609, add the above Code to version 0315, and an error will be reported when compiling the kernel; no error will be reported in version 0609
② Codes for Backlight setting and screen offset can be found by comparing the drivers/video folders of version 0315 and version 0609.
11. screen offset of the current 6410 Development Board
Note:Drivers/Video/Samsung/s3cfb_video.hFile, a total of 1 Changes
s3cfb_video_parameter_t video_parameter=""
Of"At070tn83",/* LCD type or VGA type */Some parameters:
8, // 40,/* front porch */
4, // 48,/* hsync width */
16, // 40,/* back porch */
5, // 13,/* front porch */
1, // 3,/* vsync width */
7, // 29,/* back porch */
Note: currently, a set of parameters are not offset. The comments are offset modified based on the current screen box.
12. Program startup settings
Steps:
① Modify the ECT/init. d/RCS file"Qtopia"
#qtopiaecho “starting software *** ….”start_software.sh
You cannot directly overwrite the externally written RCS file CP to the local directory to overwrite the source file. Even if you set the permission, the operating system may still fail to recognize the file and the system will prompt that you cannot find the RCS file.
② Compile the start_software.sh script. The CD file can be executed only in the current directory of the execution file.
③ Pre-import of QT Library: by default, QT library is not imported at startup, but is imported only after the operating system is started. If you do not import the QT library in advance, no such file error will be reported. Add the following code before starting the start_software.sh execution file:
export QTDIR=/usr/local/QtEmbedded-4.5.2export QPEDIR=/usr/local/QtEmbedded-4.5.2export PATH=$QTDIR/bin:$PATH export LD_LIBRARY_PATH=$QTDIR/lib:/usr/local/lib:$LD_LIBRARY_PATHexport TSLIB_TSDEVICE=/dev/input/event1 export TSLIB_CONFFILE=/usr/local/etc/ts.conf export TSLIB_PLUGINDIR=/usr/local/lib/ts export TSLIB_CALIBFILE=/etc/pointercal export QWS_MOUSE_PROTO="TSLIB:/dev/input/event1"export QWS_SIZE='480X272' # USB:/dev/input/mice" export QWS_KEYBOARD=TTY:/dev/tty1export LD_LIBRARY_PATH=/usr/local/QtEmbedded-4.5.2/lib:$LD_LIBRARY_PATH