uboot+bsp_linux3.4+buildroot-这个构建内核的方案,如何让lcd与串口同时作为终端。有的网友说在uboot中改,有的说在inittab中加,都没有用。
请问到底如何改呀,晕哥不知道有解决这个问题的链接,真心求救。可能自己的LINUX底子太薄了,以前一直在搞STM32和FPGA和QT。现在我自己画的板可以通过串口敲命令运行QT4,例如./whycan_MENU -qws& 还有,通过USB接的鼠标键盘也可以在QT中使用。
离线
@sunxiang
这个是V3S的
离线
@哇酷小二
小二大大,bootargs这个东东在哪个文件夹呀,谅解我是小白。
离线
@哇酷小二
小二大大,bootargs这个东东在哪个文件夹呀,谅解我是小白。
#define CONFIG_EXTRA_ENV_SETTINGS \
"bootdelay=3\0" \
"bootcmd=run setargs_mmc boot_mmc\0" \
"console=ttyS0,115200\0" \
"nand_root=/dev/nandd\0" \
"mmc_root=/dev/mmcblk0p2\0" \
"init=/linuxrc\0" \
"loglevel=8\0" \
"setargs_nand=setenv bootargs console=${console} root=${nand_root}\0" \
"setargs_mmc=setenv bootargs console=${console} root=${mmc_root}\0" \
"boot_normal=sunxi_flash read 40007800 boot;boota 40007800\0" \
"boot_mmc=fatload mmc 0:1 40007800 uImage;bootm 40007800\0"
#else
不知道是不是这一段
离线
--------------------------------------------------------------------------------------------------------------------
#define CONFIG_EXTRA_ENV_SETTINGS \
"bootdelay=3\0" \
"bootcmd=run setargs_mmc boot_mmc\0" \
"console=ttyS0,115200\0" \
"nand_root=/dev/nandd\0" \
"mmc_root=/dev/mmcblk0p2\0" \
"init=/linuxrc\0" \
"loglevel=8\0" \
"setargs_nand=setenv bootargs console=${console} root=${nand_root}\0" \
"setargs_mmc=setenv bootargs console=${console} root=${mmc_root}\0" \
"boot_normal=sunxi_flash read 40007800 boot;boota 40007800\0" \
"boot_mmc=fatload mmc 0:1 40007800 uImage;bootm 40007800\0"
#else
#define CONFIG_EXTRA_ENV_SETTINGS \
"bootdelay=3\0" \
"bootcmd=run setargs_nand boot_normal\0" \
"console=ttyS0,115200\0" \
"nand_root=/dev/nandd\0" \
"mmc_root=/dev/mmcblk0p7\0" \
"init=/init\0" \
"loglevel=8\0" \
"setargs_nand=setenv bootargs console=${console} root=${nand_root}\0" \
"init=${init} loglevel=${loglevel} partitions=${partitions}\0" \
"setargs_mmc=setenv bootargs console=${console} root=${mmc_root}\0" \
"init=${init} loglevel=${loglevel} partitions=${partitions}\0" \
"boot_normal=sunxi_flash read 40007800 boot;boota 40007800\0" \
"boot_recovery=sunxi_flash read 40007800 recovery;boota 40007800\0" \
"boot_fastboot=fastboot\0"
#endif
#define CONFIG_SUNXI_SPRITE_ENV_SETTINGS \
"bootdelay=0\0" \
"bootcmd=run sunxi_sprite_test\0" \
"console=ttyS0,115200\0" \
"sunxi_sprite_test=sprite_test read\0"
这个是/u-boot-2011.9/include/configs/sun8iw8p1_spinand_emmc.h
就三个地方提到了ttyS0,我在前面加console=tty0 还是没有用,下面的是uboot编译脚本
--------------------------------------------------------------------------------------------------------------------------
cd $UBOOT_DIR
make -j8 CROSS_COMPILE=${CROSS_COMPILE} sun8iw8p1_spinand_emmc && \
make -j8 CROSS_COMPILE=${CROSS_COMPILE} fes && \
make -j8 CROSS_COMPILE=${CROSS_COMPILE} boot0
[ $? -ne 0 ] && echo "build u-boot Failed"
--------------------------------------------------------------------------------------------------------------------------
离线
原来是官方的uboot(u-boot-2011.9),看来确实很少人用这个.
离线