Dingoo A320 ⇒ Dual Boot

支援S6D04M0X21


雖然司徒之前已經為了ILI9340而修改Dual Boot程式,不過這次則是為了S6D04M0X21而必須再次修改Dual Boot程式,至於zImage部份,幸運地,還是可以繼續使用ILI9338的zImage,修改部份如下說明:

diff org/hwinit/jz4740_slcd.c new/hwinit/jz4740_slcd.c
207a208,287
> /*
>  * Dingoo A320 S6D04M0X21 specific stuff. Provided by ChinaChip.
>  */
> 
> #ifdef CONFIG_JZ_SLCD_A320_S6D04M0X21
> 
> static const unsigned short slcd_reg_init_table [] = {
>   DELAY_FLAG | 160,
>   0x0001,
>   0x02f0,0x005a,0x005a,
>   0x01f3,0x0000,
>   0x04ff,0x0030,0x0000,0x0000,0x0040,
>   0x0011,
>   0x08f3,0x0001,0x0026,0x0026,0x0007,0x0011,0x0057,0x0057,0x002c,
>   0x05f4,0x0060,0x0060,0x006F,0x006F,0x0044,
>   0x06f5,0x0012,0x0011,0x0003,0x00f0,0x0030,0x001f,
>   0x01f3,0x0003,
>   0x04ff,0x0030,0x0000,0x0000,0x0070,
>   0x01f3,0x000f,
>   0x04ff,0x0030,0x0000,0x0000,0x0078,
>   0x01f3,0x001f,
>   0x04ff,0x0000,0x0000,0x0000,0x0078, 
>   0x01f3,0x001f,
>   0x08f3,0x00ff,0x0026,0x0026,0x0007,0x0055,0x0057,0x0057,0x002c,
>   0x0011,
>   0x0bf2,0x0013,0x0013,0x0001,0x0008,0x0008,0x0008,0x0008,0x0010,0x0000,0x0010,0x0010,
>   0x01fd,0x0055,
>   0x0135,0x0000,
>   0x0136,0x00e8,
>   0x013a,0x0055,
>   0x06fe,0x0016,0x0016,0x0028,0x0000,0x0000,0x0006,
>   0x04f6,0x0010,0x0080,0x0000,0x0010, 
>   0x0151,0x00ff,
>   0x0153,0x0000,
>   0x0155,0x0000,
>   0x015e,0x0000,
>   0x03ca,0x0080,0x0080,0x0020,
>   0x01cb,0x0001,
>   0x0ff7,0x0092,0x001a,0x001e,0x001a,0x001d,0x001d,0x001e,0x0026,0x001c,0x001c,0x0024,0x001b,0x0009,0x0011,0x0018,
>   0x0ff8,0x001a,0x0000,0x001e,0x001a,0x001d,0x001a,0x001d,0x0024,0x001e,0x001f,0x0027,0x001e,0x000a,0x0011,0x0011,
>   0x0ff9,0x0086,0x001a,0x0010,0x0010,0x001d,0x001b,0x001f,0x0027,0x001b,0x001f,0x0027,0x001e,0x000a,0x0011,0x0018,
>   0x0ffa,0x001a,0x0000,0x001e,0x001a,0x001d,0x001a,0x001d,0x0024,0x001e,0x001f,0x0027,0x001e,0x000a,0x0011,0x0011,
>   0x0ffb,0x0080,0x001a,0x001e,0x001a,0x001d,0x001b,0x001e,0x0026,0x0017,0x001a,0x001d,0x0014,0x0000,0x0011,0x0018,
>   0x0ffc,0x001a,0x0000,0x001e,0x001a,0x001d,0x001a,0x001d,0x0024,0x001e,0x001f,0x0027,0x001e,0x000a,0x0011,0x0011,
>   0x042a,0x0000,0x0000,0x0001,0x003f, 
>   0x042b,0x0000,0x0000,0x0000,0x00ef, 
>   0x0029,
>   0x002c,
>   DELAY_FLAG    /* End of table marker */
> };
> 
> #endif /* CONFIG_JZ_SLCD_A320_S6D04M0X21 */

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

s6d04m0x21.bat

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

燒錄後就可以開始設定安裝項目

Continue


Yes


Dual-boot


Yes


OK


完成
雖然顏色顯示不正確,不過主要項目可以看到就可以,畢竟主要是為了設定而非好看,多花那個時間不划算。


返回上一頁