OK6410A 开发板 (六) 2 OK6410A linux-5.11 移植

$ arm-linux-gnueabi-gcc --version 
arm-linux-gnueabi-gcc (Linaro GCC 7.4-2019.02) 7.4.1 20181213 [linaro-7.4-2019.02 revision 56ec6f6b99cc167ff0c2f8e1a2eed33b1edc85d4]
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
arch/arm/configs/s3c6400_defconfig
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- s3c6400_defconfig
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi-  LOADADDR=0x50008000 uImage
现象:
打印完 s3c6400-uart.0: ttySAC0 at MMIO 0x7f005000 (irq = 69, base_baud
卡死
  • 临时解决方案
s3c24xx_serial_probe 中 注释掉 以下 行

    /*                                                                               
     * Deactivate the clock enabled in s3c24xx_serial_init_port here,                
     * so that a potential re-enablement through the pm-callback overlaps            
     * and keeps the clock enabled in this case.                                     
     */                                                                              
    clk_disable_unprepare(ourport->clk);                                             
    if (!IS_ERR(ourport->baudclk))                                                   
        clk_disable_unprepare(ourport->baudclk);                                     
                                                                                     

u-boot 的 bootargs 中要添加rootwait
  • 最小配置
CONFIG_ARCH_MULTI_V6=y
CONFIG_ARCH_S3C64XX=y
CONFIG_MACH_SMDK6410=y
CONFIG_SERIAL_SAMSUNG=y
CONFIG_SERIAL_SAMSUNG_CONSOLE=y
CONFIG_MMC=y
CONFIG_MMC_SDHCI=y
CONFIG_MMC_SDHCI_S3C=y
CONFIG_EXT3_FS=y

其他驱动

目前已经弄完的,且正常能用的
boot
uart
mmc(sd)
ddr

目前还剩下比较有意思的,过一阶段再弄
gpio(J8/J12/J13)
led(led1/2/3/4)
lcd(FIT-LCD4.3,CON1外插)
ethernet(dm9000a)
camera(FIT-CAM-OV9650,JP1外插)
audio(ac97,wm9714,粉红色插口J7mic,青色插口J6speaker,淡蓝色插口J14)
nand(K9G8G08U0A)
usb(usb otg)
jtag(CN2,外插)
rtc(S3C6410内部)
sdiowifi(接sdcard1,CN4外插)
TV out(黄色插口)
reset button(S1)
温度传感器(ds18b20,sdiowifi附近)
红外接收器(HS0038B,button S7附近)
key(S2...S7)
蜂鸣器
ADC(CN3)

猜你喜欢

转载自blog.csdn.net/u011011827/article/details/114834915