跳到主要內容

發表文章

目前顯示的是有「備忘錄」標籤的文章

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>...