Dingoo A320 ⇒ Dual Boot

支援ILI9340


A320掌機最棒的地方在於刷入Dual Boot之後,使用者就可以開始刷第三方的系統,如:Dingux或者OpenDingux系統,而目前這兩個系統都是基於Linux系統,相較於ucOS系統;Linux系統更為成熟且資源豐富,因此開發或者移植程式相對容易,而司徒目前遇到的問題則是替換新的屏幕之後,Dual Boot的安裝畫面無法正確顯示,這使得司徒必須修改Dual Boot程式,不過司徒發現Dual Boot是由HwInit和zImage組合而成,可惜的是,目前只有HwInit有公開程式碼,不過幸好測試後,發現zImage可以使ILI9338的zImage,只是顏色顯示不正確而已,這已經是最好的狀態了,畢竟比完全不能顯示來的好,司徒只希望Dual Boot可以讓使用者操作安裝畫面就好,顏色正確性則是其次,HwInit的修改如下說明:

diff org/hwinit/jz4740_slcd.c new/hwinit/jz4740_slcd.c
207a208,287
>  * Dingoo A320 IL9340 specific stuff. Provided by ChinaChip.
>  */
> 
> #ifdef CONFIG_JZ_SLCD_A320_ILI9340
> 
> static const unsigned short slcd_reg_init_table [] = {
>   0x0011,
>   DELAY_FLAG | 100,
>   0x01cb, 0x0001,
>   0x02c0, 0x0026, 0x0001,
>   0x01c1, 0x0010,
>   0x02c5, 0x0010, 0x0052,
>   0x0126, 0x0001,
>   0x0fe0, 0x0010, 0x0010, 0x0010, 0x0008, 0x000e, 0x0006, 0x0042, 0x0028, 0x0036, 0x0003, 0x000e, 0x0004, 0x0013, 0x000e, 0x000c,
>   0x0fe1, 0x000c, 0x0023, 0x0026, 0x0004, 0x000c, 0x0004, 0x0039, 0x0024, 0x004b, 0x0003, 0x000b, 0x000b, 0x0033, 0x0037, 0x000f,
>   0x042a, 0x0000, 0x0000, 0x0001, 0x003f,
>   0x042b, 0x0000, 0x0000, 0x0000, 0x00ef,
>   0x0136, 0x00e8,
>   0x013a, 0x0005,
>   0x0029,
>   0x002c,
>   DELAY_FLAG    /* End of table marker */
> };
> 
> #endif /* CONFIG_JZ_SLCD_A320_ILI9340 */

diff org/hwinit/Makefile new/hwinit/Makefile
diff org/Makefile new/Makefile
14c14
< all: hwinit_ILI9325.bin hwinit_ILI9331.bin hwinit_ILI9338.bin
---
> all: hwinit_ILI9325.bin hwinit_ILI9331.bin hwinit_ILI9338.bin hwinit_ILI9340.bin
24a25,30
> hwinit_ILI9340.elf: $(OBJS) jz4740_slcd_ILI9340.o
>   $(CROSS)ld $(LDFLAGS) $^ -o $@
> 
32a39,44
> 
> jz4740_slcd_ILI9340.o: jz4740_slcd.c
>   $(CROSS)gcc -DCONFIG_JZ_SLCD_A320_ILI9340 $(CFLAGS) -c $< -o $@
> 

ILI9340.bat的內容如下:

usbtool-win 1 hwinit_ILI9340.bin 0x80000000
usbtool-win 1 zImage_dual_boot_installer_ILI9338 0x80600000


返回上一頁