UART腳位
接線
Baudrate 115200bps
IPL g5da0ceb D-1e HW Reset miupll_233MHz MIU0 zq=0x003d miu_bw_set utmi_1_init done utmi_2_init done utmi_3_init done usbpll init done...... cpupll init done SPI 54M clk_init done P1 USB_rterm trim=0x0000 P1 USB_HS_TX_CURRENT trim=0x0001 P2 USB_rterm trim=0x0000 P2 USB_HS_TX_CURRENT trim=0x0001 P3 USB_rterm trim=0x0000 P3 USB_HS_TX_CURRENT trim=0x0001 PM_vol_bgap trim=0x0005 GCR_SAR_DATA trim=0x0190 ETH 10T output swing trim=0x0010 ETH 100T output swing trim=0x0000 ETH RX input impedance trim=0x0000 ETH TX output impedance trim=0x0001 MIPI_HS_RTERM trim=0x0001 MIPI_LP_RTERM trim=0x0000 128MB BIST0_0001-OK Enable MMU and CACHE Load IPL_CUST from NOR offset:00010000 GD QE=1 Load time 824 us, 25864 KiB/s Checksum OK IPL_CUST g5da0ceb MXP found at 0x00020000 runUBOOT() runUBOOT() [SPI_NOR] Load time 12906 us, 13277 KiB/s -Verify UBOOT CRC32 passed! -Decompress UBOOT XZ decomp_size=0x00073600 Disable MMU and D-cache before jump to UBOOT U-Boot 2015.01 (Nov 20 2021 - 16:56:14) Version: I2g####### Watchdog enabled I2C: ready DRAM: WARNING: Caches not enabled MMC: MStar SD/MMC: 0 nor_flash_mxp allocated success!! Flash is detected (0x0B05, 0xC8, 0x40, 0x18) SF: Detected nor0 with total size 16 MiB MXP found at mxp_offset[4]=0x00020000, size=0x1000 env_offset=0x5F000 env_size=0x1000 Flash is detected (0x0B05, 0xC8, 0x40, 0x18) SF: Detected nor0 with total size 16 MiB In: serial Out: serial Err: serial ========= power adapter 0======== ========= power key 0======== bootcheck start fore uup u8KeyPad_KeyVal [0x7] BootMode 0 gpio debug MHal_GPIO_Pad_Set: pin=85 ==== mdrv_gpio_set_high ==== ==== mdrv_gpio_get_level ==== gpio[85] is 1 LOGO in flash offset=0x270000 size=0x20000 Header count 3 Name DISP Sub head sz 56 total sz 1140 node cnt 4 DB Table and setting match. First offset 884 out buf size 0x300000 out buf addr 0x7c00000 en 1 Total size 1196 Total sz 18440, Node cnt 1 _BootJpdYuvCtrl 1471:: Create Decompress struct _BootJpdYuvCtrl 1479:: Set memory buffer as source _BootJpdYuvCtrl 1491:: Read the JPEG header _BootJpdYuvCtrl 1504:: Initiate JPEG decompression _BootJpdYuvCtrl 1516:: Image is 640 by 480 with 3 components _BootJpdYuvCtrl 1528:: BmpBuffer: 0x23d1da10 _BootJpdYuvCtrl 1541:: Start reading scanlines _BootJpdYuvCtrl 1551:: Done reading scanlines _BootJpdYuvCtrl 1556:: End of decompression _BootLogoYuv444ToYuv420 1195:: 444 To 422, In:23d1da10, Out:27c00000, Width:640, Height:480 _BootDispCtrl 1655, H(48 4 48 640) V(10 4 10 480) Fps:60 _BootDispCtrl 1734, PnlLink:11 gpio debug MHal_GPIO_Pad_Set: pin=4 ==== mdrv_gpio_set_high ==== ==== mdrv_gpio_get_level ==== gpio[4] is 1 gpio debug MHal_GPIO_Pad_Set: pin=8 ==== mdrv_gpio_set_low ==== ==== mdrv_gpio_get_level ==== gpio[8] is 0 Flash is detected (0x0B05, 0xC8, 0x40, 0x18) SF: Detected nor0 with total size 16 MiB SF: 2097152 bytes @ 0x60000 Read: OK gpio debug MHal_GPIO_Pad_Set: pin=8 ==== mdrv_gpio_set_high ==== ==== mdrv_gpio_get_level ==== gpio[8] is 1 ## Booting kernel from Legacy Image at 22000000 ... Image Name: MVX4##I2M#g#######KL_LX409##[BR: Image Type: ARM Linux Kernel Image (lzma compressed) Data Size: 1787784 Bytes = 1.7 MiB Load Address: 20008000 Entry Point: 20008000 Verifying Checksum ... OK -usb_stop(USB_PORT0) -usb_stop(USB_PORT1) -usb_stop(USB_PORT2) Uncompressing Kernel Image ... [XZ] !!!reserved 0x21000000 length=0x 1000000 for xz!! XZ: uncompressed size=0x344000, ret=7 OK atags:0x20000000 Starting kernel ...
竟然卡在這裡...
司徒測試後,發現只要不連接UART VCC就可以進入console
IPL g5da0ceb D-1e HW Reset miupll_233MHz MIU0 zq=0x003d miu_bw_set utmi_1_init done utmi_2_init done utmi_3_init done usbpll init done...... cpupll init done SPI 54M clk_init done P1 USB_rterm trim=0x0000 P1 USB_HS_TX_CURRENT trim=0x0001 P2 USB_rterm trim=0x0000 P2 USB_HS_TX_CURRENT trim=0x0001 P3 USB_rterm trim=0x0000 P3 USB_HS_TX_CURRENT trim=0x0001 PM_vol_bgap trim=0x0005 GCR_SAR_DATA trim=0x0190 ETH 10T output swing trim=0x0010 ETH 100T output swing trim=0x0000 ETH RX input impedance trim=0x0000 ETH TX output impedance trim=0x0001 MIPI_HS_RTERM trim=0x0001 MIPI_LP_RTERM trim=0x0000 128MB BIST0_0001-OK Enable MMU and CACHE Load IPL_CUST from NOR offset:00010000 GD QE=1 Load time 824 us, 25864 KiB/s Checksum OK IPL_CUST g5da0ceb MXP found at 0x00020000 runUBOOT() runUBOOT() [SPI_NOR] Load time 12906 us, 13277 KiB/s -Verify UBOOT CRC32 passed! -Decompress UBOOT XZ decomp_size=0x00073600 Disable MMU and D-cache before jump to UBOOT U-Boot 2015.01 (Nov 20 2021 - 16:56:14) Version: I2g####### Watchdog enabled I2C: ready DRAM: WARNING: Caches not enabled MMC: MStar SD/MMC: 0 nor_flash_mxp allocated success!! Flash is detected (0x0B05, 0xC8, 0x40, 0x18) SF: Detected nor0 with total size 16 MiB MXP found at mxp_offset[4]=0x00020000, size=0x1000 env_offset=0x5F000 env_size=0x1000 Flash is detected (0x0B05, 0xC8, 0x40, 0x18) SF: Detected nor0 with total size 16 MiB In: serial Out: serial Err: serial ========= power adapter 1======== get_dev_hwpart (mmc, 0, 0) get_dev_hwpart ifname mmc, name usb,reloc_get_dev 23f3aa74, select_hwpart 00000000,mmc_get_dev 23f748ac, mmc_select_hwpart 23f7385c get_dev_hwpart ifname mmc, name mmc,reloc_get_dev 23f748ac, select_hwpart 23f7385c,mmc_get_dev 23f748ac, mmc_select_hwpart 23f7385c gpio debug MHal_GPIO_Pad_Set: pin=19 _[sdmmc_0] Card Detect Fail! ** Bad device mmc 0 ** get_device_and_partition(mmc, 0) return -1, fstype=1 miyoo283_fw.img not found ========= power key 0======== bootcheck start fore uup u8KeyPad_KeyVal [0x5a] BootMode 0 gpio debug MHal_GPIO_Pad_Set: pin=85 ==== mdrv_gpio_set_high ==== ==== mdrv_gpio_get_level ==== gpio[85] is 1 LOGO in flash offset=0x270000 size=0x20000 Header count 3 Name DISP Sub head sz 56 total sz 1140 node cnt 4 DB Table and setting match. First offset 884 out buf size 0x300000 out buf addr 0x7c00000 en 1 Total size 1196 Total sz 18440, Node cnt 1 _BootJpdYuvCtrl 1471:: Create Decompress struct _BootJpdYuvCtrl 1479:: Set memory buffer as source _BootJpdYuvCtrl 1491:: Read the JPEG header _BootJpdYuvCtrl 1504:: Initiate JPEG decompression _BootJpdYuvCtrl 1516:: Image is 640 by 480 with 3 components _BootJpdYuvCtrl 1528:: BmpBuffer: 0x23d1ee28 _BootJpdYuvCtrl 1541:: Start reading scanlines _BootJpdYuvCtrl 1551:: Done reading scanlines _BootJpdYuvCtrl 1556:: End of decompression _BootLogoYuv444ToYuv420 1195:: 444 To 422, In:23d1ee28, Out:27c00000, Width:640, Height:480 _BootDispCtrl 1655, H(48 4 48 640) V(10 4 10 480) Fps:60 _BootDispCtrl 1734, PnlLink:11 gpio debug MHal_GPIO_Pad_Set: pin=4 ==== mdrv_gpio_set_high ==== ==== mdrv_gpio_get_level ==== gpio[4] is 1 gpio debug MHal_GPIO_Pad_Set: pin=8 ==== mdrv_gpio_set_low ==== ==== mdrv_gpio_get_level ==== gpio[8] is 0 Flash is detected (0x0B05, 0xC8, 0x40, 0x18) SF: Detected nor0 with total size 16 MiB SF: 2097152 bytes @ 0x60000 Read: OK gpio debug MHal_GPIO_Pad_Set: pin=8 ==== mdrv_gpio_set_high ==== ==== mdrv_gpio_get_level ==== gpio[8] is 1 ## Booting kernel from Legacy Image at 22000000 ... Image Name: MVX4##I2M#g#######KL_LX409##[BR: Image Type: ARM Linux Kernel Image (lzma compressed) Data Size: 1787784 Bytes = 1.7 MiB Load Address: 20008000 Entry Point: 20008000 Verifying Checksum ... OK -usb_stop(USB_PORT0) -usb_stop(USB_PORT1) -usb_stop(USB_PORT2) Uncompressing Kernel Image ... [XZ] !!!reserved 0x21000000 length=0x 1000000 for xz!! XZ: uncompressed size=0x344000, ret=7 OK atags:0x20000000 Starting kernel ... mount: can't find devpts in /etc/fstab mount: mounting none on /sys failed: Device or resource busy mount: mounting none on /sys/kernel/debug/ failed: Device or resource busy chmod: /etc/core.sh: Read-only file system [1]+ Done busybox telnetd insmod: can't read '/config/modules/4.9.84/cifs.ko': No such file or directory insmod: can't read '/config/modules/4.9.84/grace.ko': No such file or directory insmod: can't read '/config/modules/4.9.84/sunrpc.ko': No such file or directory insmod: can't read '/config/modules/4.9.84/lockd.ko': No such file or directory insmod: can't read '/config/modules/4.9.84/nfs.ko': No such file or directory insmod: can't read '/config/modules/4.9.84/nfsv2.ko': No such file or directory insmod: can't read '/config/modules/4.9.84/usb-common.ko': No such file or directory insmod: can't read '/config/modules/4.9.84/usbcore.ko': No such file or directory insmod: can't read '/config/modules/4.9.84/scsi_mod.ko': No such file or directory insmod: can't read '/config/modules/4.9.84/usbhid.ko': No such file or directory mknod: /dev/mi_alsa: File exists / # orig value: 110, fix to: 10 chmod: /usr/bin/notify: No such file or directory sh: write error: Invalid argument Ao Param: AO InPut Path:/customer/app/sound/change.wav Device:LineOut Hpf:Disable Nr:Disable Agc:Disable Eq:Disable Resample:Disable 3067 Start test: MI_SYS_Init() AUDIO_TEST [3067] MI_SYS_Init() exec function pass 3067 End test: MI_SYS_Init() 3081 Start test: initAo() eSamplerate 44100, channel 2 2394 Start test: MI_AO_SetPubAttr(AoDevId, &stAoSetAttr) AUDIO_TEST [2394] MI_AO_SetPubAttr(AoDevId, &stAoSetAttr) exec function pass 2394 End test: MI_AO_SetPubAttr(AoDevId, &stAoSetAttr) 2400 Start test: MI_AO_GetPubAttr(AoDevId, &stAoGetAttr) AUDIO_TEST [2400] MI_AO_GetPubAttr(AoDevId, &stAoGetAttr) exec function pass 2400 End test: MI_AO_GetPubAttr(AoDevId, &stAoGetAttr) 2406 Start test: MI_AO_Enable(AoDevId) _MI_AO_OpenVqeLib: success _MI_AO_OpenSrcLib: success _MI_AO_OpenG711Lib: success _MI_AO_OpenG726Lib: success AUDIO_TEST [2406] MI_AO_Enable(AoDevId) exec function pass 2406 End test: MI_AO_Enable(AoDevId) 2412 Start test: MI_AO_EnableChn(AoDevId, AoChn) AUDIO_TEST [2412] MI_AO_EnableChn(AoDevId, AoChn) exec function pass 2412 End test: MI_AO_EnableChn(AoDevId, AoChn) 2477 Start test: MI_AO_SetVolume(AoDevId, s32AoVolume) AUDIO_TEST [2477] MI_AO_SetVolume(AoDevId, s32AoVolume) exec function pass 2477 End test: MI_AO_SetVolume(AoDevId, s32AoVolume) 2478 Start test: MI_AO_GetVolume(AoDevId, &s32AoGetVolume) AUDIO_TEST [2478] MI_AO_GetVolume(AoDevId, &s32AoGetVolume) exec function pass 2478 End test: MI_AO_GetVolume(AoDevId, &s32AoGetVolume) create ao thread needsize = 4096. AUDIO_TEST [3081] initAo() exec function pass 3081 End test: initAo() play 13840 bytes finished join Ao thread done. 3110 Start test: deinitAo() 2675 Start test: MI_AO_DisableChn(AoDevId, AoChn) AUDIO_TEST [2675] MI_AO_DisableChn(AoDevId, AoChn) exec function pass 2675 End test: MI_AO_DisableChn(AoDevId, AoChn) 2676 Start test: MI_AO_Disable(AoDevId) AUDIO_TEST [2676] MI_AO_Disable(AoDevId) exec function pass 2676 End test: MI_AO_Disable(AoDevId) AUDIO_TEST [3110] deinitAo() exec function pass 3110 End test: deinitAo() 3114 Start test: MI_SYS_Exit() AUDIO_TEST [3114] MI_SYS_Exit() exec function pass 3114 End test: MI_SYS_Exit() add device 1: /dev/input/event0 name: "soc:gpio_keys" could not get driver version for /dev/input/mice, Inappropriate ioctl for device open device /dev/input/mice fail set keymap to L2,L,R2,R,X,A,B,Y set hibernate to 0 set language cht.lang 5142 start MI_SYS_Init cost 2008.000000ms 7328.000000 driver_name (nil) 7329.000000 FB_CreateDevice GFX_Open return 0 vtpath = /dev/vc/2, fd = -1 vtpath = /dev/tty2, fd = 6 Current VT: 2 7431.000000 FB_VideoInit shadow_fb is 0 init audio 21 7432 ttf inited read from pwr key file: 0, 0 pluged in: 1, 1 7492 sdl inited SDL_GetVideoMode 640x480 32 -> 640x480 32 FB_EnterGraphicsMode start iotcl VT_GETSTATE start iotcl VT_ACTIVATE start 1 iotcl VT_WAITACTIVE start iotcl KDGKBMODE start iotcl KDSKBMODE start 3 iotcl KDSETMODE start iotcl VT_LOCKSWITCH start FB_EnterGraphicsMode end SDL_SetVideoMode publicsurface 0x163658, shadowsurface (nil), videosurface 0x163658 Double buf enabled 0, use SDL_UpdateRect when flip [InitKeyShm]: create shm fail : File exists, size 3256 _gfx_alloc_surface 0x1645b0, 0xb5a1c000, idx 0 FB_AllocHWSurface1 0x164540, 0x1645b0, 0xb5a1c000, flags 10001, 640x480, idx 0 7493 screen inited [InitKeyShm]: create shm fail : File exists, size 3256 set keymap to L2,L,R2,R,X,A,B,Y set hibernate to 0 set language cht.lang sys lang cht.lang, path /customer/app/, support multilanguage 1 _gfx_alloc_surface 0x19d1d8, 0xb5659000, idx 1 FB_AllocHWSurface1 0x1a2858, 0x19d1d8, 0xb5659000, flags 10001, 640x480, idx 1 _gfx_alloc_surface 0x1a2930, 0xb6fea000, idx 2 FB_AllocHWSurface1 0x1a27b0, 0x1a2930, 0xb6fea000, flags 10001, 640x4, idx 2 _gfx_alloc_surface 0x1a2820, 0xb6fe7000, idx 3 FB_AllocHWSurface1 0x19d228, 0x1a2820, 0xb6fe7000, flags 10001, 640x4, idx 3 SStar_CheckHWBlit SStar_CheckHWBlit FB_FreeHWSurface 0x1a27b0, 0x1a2930, 0xb6fea000 _gfx_free_surface 0x1a2930 , 0xb6fea000 _gfx_alloc_surface 0x19d738, 0xb6feb000, idx 4 FB_AllocHWSurface1 0x1a2980, 0x19d738, 0xb6feb000, flags 10001, 4x360, idx 4 _gfx_alloc_surface 0x1a29f0, 0xb58b0000, idx 5 FB_AllocHWSurface1 0x19d3a0, 0x1a29f0, 0xb58b0000, flags 10001, 4x360, idx 5 SStar_CheckHWBlit SStar_CheckHWBlit FB_FreeHWSurface 0x1a2980, 0x19d738, 0xb6feb000 _gfx_free_surface 0x19d738 , 0xb6feb000 open stat_bg fail: Couldn't open /customer/app/skin/nav-bar-item-bg.png src format: flags 10000 bpp 32 loss(0, 0, 0, 0) shift(0, 8, 16, 24) mask(ff, ff00, ff0000, ff000000) target format: flags 10000 bpp 32 loss(0, 0, 0, 0) shift(0, 8, 16, 24) mask(ff, ff00, ff0000, ff000000) _gfx_alloc_surface 0x19dec0, 0xb588a000, idx 6 FB_AllocHWSurface1 0x1a27b0, 0x19dec0, 0xb588a000, flags 10001, 640x60, idx 6 _gfx_alloc_surface 0x19d660, 0xb583e000, idx 7 FB_AllocHWSurface1 0x19d960, 0x19d660, 0xb583e000, flags 10001, 640x60, idx 7 SStar_CheckHWBlit SStar_CheckHWBlit FB_FreeHWSurface 0x1a27b0, 0x19dec0, 0xb588a000 _gfx_free_surface 0x19dec0 , 0xb588a000 _gfx_alloc_surface 0x19dec0, 0xb588a000, idx 8 FB_AllocHWSurface1 0x19e150, 0x19dec0, 0xb588a000, flags 10001, 640x60, idx 8 _gfx_alloc_surface 0x19e128, 0xb5864000, idx 9 FB_AllocHWSurface1 0x19da20, 0x19e128, 0xb5864000, flags 10001, 640x60, idx 9 SStar_CheckHWBlit SStar_CheckHWBlit FB_FreeHWSurface 0x19e150, 0x19dec0, 0xb588a000 _gfx_free_surface 0x19dec0 , 0xb588a000 Load Music /customer/app/sound/change.wav load music /customer/app/sound/change.wav fail: Audio device hasn't been opened Load Music /etc/enter.wav load music /etc/enter.wav fail: Couldn't open /etc/enter.wav Load Music /customer/app/sound/bgm.mp3 _gfx_alloc_surface 0x19e190, 0xb5896000, idx 10 FB_AllocHWSurface1 0x1a2470, 0x19e190, 0xb5896000, flags 10001, 154x170, idx 10 _gfx_alloc_surface 0x19d300, 0xb5824000, idx 11 FB_AllocHWSurface1 0x1a1918, 0x19d300, 0xb5824000, flags 10001, 154x170, idx 11 SStar_CheckHWBlit SStar_CheckHWBlit FB_FreeHWSurface 0x1a2470, 0x19e190, 0xb5896000 _gfx_free_surface 0x19e190 , 0xb5896000 _gfx_alloc_surface 0x19d9f8, 0xb5896000, idx 12 FB_AllocHWSurface1 0x1a2470, 0x19d9f8, 0xb5896000, flags 10001, 155x170, idx 12 _gfx_alloc_surface 0x19e190, 0xb580a000, idx 13 FB_AllocHWSurface1 0x1a1a18, 0x19e190, 0xb580a000, flags 10001, 155x170, idx 13 SStar_CheckHWBlit SStar_CheckHWBlit FB_FreeHWSurface 0x1a2470, 0x19d9f8, 0xb5896000 _gfx_free_surface 0x19d9f8 , 0xb5896000 _gfx_alloc_surface 0x19d9f8, 0xb5896000, idx 14 FB_AllocHWSurface1 0x1a2470, 0x19d9f8, 0xb5896000, flags 10001, 214x120, idx 14 _gfx_alloc_surface 0x1a19f0, 0xb57f0000, idx 15 FB_AllocHWSurface1 0x1a1ae8, 0x1a19f0, 0xb57f0000, flags 10001, 214x120, idx 15 SStar_CheckHWBlit FB_FreeHWSurface 0x1a2470, 0x19d9f8, 0xb5896000 _gfx_free_surface 0x19d9f8 , 0xb5896000 load font height is 29 cp: can't stat '/usr/trimui/res/licenses/mame/COPYING': No such file or directory cp: can't stat '/usr/trimui/res/licenses/mame/COPYING': No such file or directory cp: can't stat '/usr/trimui/res/licenses/fceux/COPYING': No such file or directory cp: can't stat '/usr/trimui/res/licenses/bsnes/LICENSE': No such file or directory cp: can't stat '/usr/trimui/res/licenses/gamebatte/COPYING': No such file or directory cp: can't stat '/usr/trimui/res/licenses/picodrive/COPYING': No such file or directory cp: can't stat '/usr/trimui/res/licenses/gPsp/COPYING.DOC': No such file or directory cp: can't stat '/usr/trimui/res/licenses/sms/license': No such file or directory cp: can't stat '/usr/trimui/res/licenses/temper/COPYING': No such file or directory cp: can't stat '/usr/trimui/res/licenses/pcsx_rearmed/COPYING': No such file or directory read lang file /customer/app/lang/en.lang ok=1 genShortLangFile en.lang index 0, size 1 read lang file /customer/app/lang/ch.lang ok=1 add language 1 ch.lang to 1. example RA模拟器 genShortLangFile ch.lang index 1, size 2 read lang file /customer/app/lang/cht.lang ok=1 add language 2 cht.lang to 2. example 復古遊戲 genShortLangFile cht.lang index 2, size 3 read lang file /customer/app/lang/es.lang ok=1 add language 3 es.lang to 3. example RetroArch genShortLangFile es.lang index 3, size 4 read lang file /customer/app/lang/ja.lang ok=1 add language 4 ja.lang to 4. example RetroArch genShortLangFile ja.lang index 4, size 5 read lang file /customer/app/lang/ko.lang ok=1 add language 5 ko.lang to 5. example 복고놀이 genShortLangFile ko.lang index 5, size 6 read lang file /customer/app/lang/pt.lang ok=1 add language 6 pt.lang to 6. example RetroArch genShortLangFile pt.lang index 6, size 7 8432 charging SStar_CheckHWBlit / #
司徒後來決定找塊風水寶地把UART拉出來
座標設定
挖洞
母座
還不錯
三秒膠固定
焊接到UART座
還不錯
完美的開發機器