掛載映像檔 kpartx -av ~/hd.img掛載後,就可以在 /dev/mapper/ 目錄下看到兩個loopXpY的文件了。來源:http://www.cnblogs.com/Jer-/p/3330128.html
2014年6月13日 星期五
kpartx掛載硬碟映像檔
2014年6月10日 星期二
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
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
2014年6月9日 星期一
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的结构
3。nand-part命令是:
4。再来就是resize2fs
最后检查看:
來源:http://forum.cubietech.com/forum.php?mod=viewthread&tid=1454
http://www.cubieforums.com/index.php?topic=72.0
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, partition size = 32768 user_type=0
- partition 3: class = DISK, name = boot, partition start = 131072, partition size = 65536 user_type=0
- partition 4: class = DISK, name = rootfs, partition start = 196608, partition size = 4194304 user_type=0
- partition 5: class = DISK, name = UDISK, partition start = 4390912, partition size = 3342336 user_type=0
- root@cubieboard2:~/# ./nand-part -f a20 /dev/nand 32768 "bootloader 65536" "env 32768" "boot 65536" "rootfs 7536640"
- root@cubieboard2:~/# fsck -f /dev/nandd
- root@cubieboard2:~/# resize2fs /dev/nandd
- root@cubieboard:~# df -hl
- Filesystem Size Used Avail Use% Mounted on
- /dev/nandd 3.7G 939M 2.6G 27% /
- none 4.0K 0 4.0K 0% /sys/fs/cgroup
- none 91M 180K 91M 1% /run
- none 5.0M 4.0K 5.0M 1% /run/lock
- none 454M 0 454M 0% /run/shm
- none 100M 0 100M 0% /run/user
來源:http://forum.cubietech.com/forum.php?mod=viewthread&tid=1454
http://www.cubieforums.com/index.php?topic=72.0
2014年6月5日 星期四
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
$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
2014年5月24日 星期六
boot.scr生成
boot.scr中可以包含用于载入script.bin,kernel,initrd(可选)以及设置内核启动参数的uboot命令。
來源:http://blog.csdn.net/u013510236/article/details/18451271
新建 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> <bytes>
- interface:所用到接口,如:MMC、USB
- dev [:part]: 文件存放的设备 如:ide 0:1
- addr: 装载到内存的开始地址。
- filename: 装载的文件名称。
- bytes: copy的字节数.
. 第四行bootm 用于将内核映像加载到指定的地址
保存文件后,执行以下命令生成boot.scr:
mkimage -C none -A arm -T script -d boot.cmd boot.scr
來源:http://blog.csdn.net/u013510236/article/details/18451271
訂閱:
文章 (Atom)
預測2031/1/1可能 TWCA 憑證 IOS會出現不信任
緣由: TWCA CYBER Root CA 有兩張、兩個效期 (2030、2047年到期) 推測TWCA 預計 2030年12月會停用: TWCA CYBER Root CA (2030 年到期) TWCA Global Root CA 改用啟用: TWCA CYBER ...
-
來源: http://en.miui.com/thread-196713-1-1.html 小蟻智慧攝影機版本: 1.8.5.1l_201511061661(台灣版) 下載檔案 https://drive.google.com/file/d/0ByjBix7wpeJJY0...
-
上次做好沒存檔 這次再翻出來從弄一次...QAQ 花了我一天阿阿阿阿 D+ 接腳2 D- 接腳3 詳情請看usbconfig.h 想改搖桿配置可以用 HID Descriptor Tool 改完記得回usbconfig.h填 USB_CFG...
-
1. 架設一個簡單Web Server,以GET方式傳值發現傳入中文字收到的東西變得很不正常 原因是以GET傳值會進行ENCodeURI, 如 : http://192.168.137.177/?test= 送出 ENCodeURI : http://192....