跳到主要內容

發表文章

目前顯示的是有「A10/A20」標籤的文章

編譯sunxi-tools

mowei@mowei ~/A10/sunxi-tools $ make gcc -g -O0 -Wall -Wextra -std=c99 -D_POSIX_C_SOURCE=200112L -Iinclude/  -o fexc fexc.c script.c script_uboot.c script_bin.c script_fex.c ln -s fexc bin2fex ln -s fexc fex2bin gcc -g -O0 -Wall -Wextra -std=c99 -D_POSIX_C_SOURCE=200112L -Iinclude/  -o bootinfo bootinfo.c bootinfo.c: In function ‘print_script’: bootinfo.c:274:25: warning: unused parameter ‘script’ [-Wunused-parameter]  void print_script(void *script)                          ^ gcc -g -O0 -Wall -Wextra -std=c99 -D_POSIX_C_SOURCE=200112L -Iinclude/ `pkg-config --cflags libusb-1.0`  -o fel fel.c  `pkg-config --libs libusb-1.0` Package libusb-1.0 was not found in the pkg-config search path. Perhaps you should add the directory containing `libusb-1.0.pc' to the PKG_CONFIG_PATH environment variable No package 'libusb-1.0' found Package libusb-1.0 was not found in the pkg-config search path....

linaro lubuntu12.04安装vncserver

安装vncserver apt-get install tightvncserver 第一次启动,生产链接文件 ~/.vnc/xstartup vncserver :1 vncserver -kill :1 编辑~/.vnc/xstartup xsession-manger改为startlubuntu & 正式启动vncserver vncserver -geometry 1280x800 :1  需要开机自启,可以将上述脚本加到/etc/rc.local 來源: http://cubietech.com/forum.php?mod=viewthread&tid=56&highlight=VNC

cubieboard nand-part

#get the sunxi-tools and compile up cd /home git clone git://github.com/linux-sunxi/sunxi-tools cd sunxi-tools #get usb library if not installed, and compile. apt-get install libusb-1.0-0-dev make clean make 1。从SD卡进入CB2 2。查看nand的结构 root@cubieboard2:~/# ./nand-part -f a20 /dev/nand check partition table copy 0: mbr: version 0x00000200, magic softw411 OK check partition table copy 1: mbr: version 0x00000200, magic softw411 OK check partition table copy 2: mbr: version 0x00000200, magic softw411 OK check partition table copy 3: mbr: version 0x00000200, magic softw411 OK mbr: version 0x00000200, magic softw411 5 partitions partition  1: class =         DISK, name =   bootloader, partition start =    32768, partition size =    65536 user_type=0 partition  2: class =         DISK, name =          env, partition start =    98304,...

Cubietruck lubuntu啟動wifi

加載模塊 $modprobe bcmdhd 添加"bcmdhd" 到 /etc/modules $vi /etc/modules 下載安裝 $apt-get install wifi-radar或者$apt-get install linux-firmware 重啟$reboot 打開wifi $ifconfig wlan0 up 查找(看)wifi $iwlist wlan0 scan 來源:http://www.whatled.com/post-1351.html

boot.scr生成

boot.scr中可以包含用于载入script.bin,kernel,initrd(可选)以及设置内核启动参数的uboot命令。 新建 boot.cmd 文件,添加以下内容: setenv bootargs console = ttyS0 , 115200 noinitrd disp . screen0_output_mode = EDID : 1280x1024p60 init =/ init root =/ dev / mmcblk0p2 rootfstype = ext4 rootwait panic = 10 $ { extra } fatload mmc 0 0x43000000 boot / script . bin fatload mmc 0 0x48000000 boot / uImage bootm 0x48000000 详细解释: 上述第一行设置uboot的bootargs启动参数,格式为 参数=值,不同参数使用空格分开,其中 console=ttyS0,115200 含义为使用特定的串口ttyS0,波特率为 115200 noinitrd 含义为不使用ramdisk(内存磁盘) init=/init 含义为内核启起来后,进入系统中运行的第一个脚本 root=/dev/mmcblk0p2 含义为指定rootfs的位置为TF卡第二个分区 rootfstype=ext4 含义为根文件系统类型 rootwait 含义为等待设备/dev/mmcblk0p2就绪后才尝试挂载rootfs panic=10 传递内核参数,当遇到panic(内核严重错误)时等待10秒后重启 screen0_output_mode 设置合适的屏幕显示分辨率 更多的参数可以通过查看Linux内核源码目录下Documentation/kernel-parameters.txt文件了解 第二行和第三行为将script.bin和内核uImage加载到指定内存地址。fatload是U-Boot中装载linux kernel 到内存的指令。 基本用法:fatload <interface> <dev[:part]> <addr> <filename>...

ft5x_ts 觸碰設定問題

這是一台壞掉的A10平板ET-425 裡面nand壞了無法開機 以sd開機執行debain 添加觸碰面板驅動 這邊使用NOVO 7 ELF的script.bin 修改 [ctp_para] ctp_boxchip_type = 2579 ctp_used                 =1 ctp_name                 = "ft5x_ts" ctp_twi_id               = 2 ctp_twi_addr             =0x38 ctp_screen_max_x         = 1024 ctp_screen_max_y         = 600 ctp_revert_x_flag        = 0 ctp_revert_y_flag        = 0 ctp_exchange_x_y_flag    = 1 ctp_int_port             = port:PH21<6><default><default><default> ctp_wakeup               = port:PB13<1><default><default><default> 我把編譯好的ft5x_ts.ko 放到根目錄裡 在/etc/rc.local 裡面加入 insmod /ft5x_ts.ko or /lib/modules/3.4.29+/kerne...