Cubieboard installing Debian in NAND

Source: Internet
Author: User
Tags mkdir ssh

The system included with this tutorial is Server Edition, without display, so there will be no graphics on the plug-in display. In addition to provide the system for  http://linux-sunxi.org recommended (linux-sunxi.org authority undoubtedly), non-CB official offer, but CB official did not provide the relevant CB used server version, And this version of the system stability and simplification is very perfect. First in the win system using Win32diskimager will debian_wheezy_armhf_v1_mele.img brush to the TF card, and then the TF card into the CB TF card slot, power-on start. Since Debian already has its own SSH service, we connect to CB directly via SSH client such as SECURECRT or putty, and the default username and password are "  root ", then Cubie_nand_uboot_ Upload the Partition_image.bin file to the  /root/  directory and perform the operation in the following order. (Can be uploaded using the sftp feature in FLASHFXP) DD bs=4096 if=cubie_nand_uboot_partition_image.bin of=/dev/nand     #更新板载MBR
After DD is complete, wait at least 30 seconds, then restart the system for additional steps. Reboot     #重启CB mkfs.ext4/dev/nandb     #格式化板载存储 mount/dev/nandb/mnt     #挂载 Mkdir/tmp/boo T     #新建临时目录 mount/dev/mmcblk0p1/tmp/boot     #将sd卡的第一个分区挂载到刚才的临时目录 mkdir/mnt/boot     #在板 Load storage inside new boot directory cp/tmp/boot/uimage/mnt/boot/uimage     #将sd卡第一分区里的启动镜像到板载里面的boot目录 touch cp.txt    # Create a new TXT file
Nano cp.txt   #编辑里面内容如下:
 

/dev/*
/proc/*
/sys/*
/media/*
/mnt/*
/run/*
/tmp/*
RSYNC-AVC--exclude-from=cp.txt//mnt #同步TF卡系统到NAND If the above steps do not prompt the error, after the synchronization operation after a cup of water to wait a moment, the screen should be fast, the TF card files are quickly synchronized to the NAND , after the wait is over. Use the Shutdown-h now command to turn off the CB, unplug the TF card, then boot, see ~CB not TF card on the start of Linux.   Please first use the TTL line to connect to the CB after the network IP, and then through SSH operation, this page provides a system to display the display is not any show, need to solve. The system used on this page has a SATA drive, but does not load, open the method as follows: On-demand, that is, when you want to use SATA is to run the following command, restart after the failure.
Modprobe Sw_ahci_platform is turned on once and again, that is, after you enter the following command, the restart is still valid.
echo "Sw_ahci_platform" >>/etc/modules System Patch installation Method: Download the linux-armhf-headless-1g-3.0.42-3.tar.gz patch pack and upload it to the/tmp/directory , Tar xzf linux-armhf-headless-1g-3.0.42-3.tar.gz #解压缩到当前目录
CD Linux-armhf-headless-1g-3.0.42-3 #进入解压缩后的目录 The following steps one for the system is installed in NAND
1. CP p1/uimage/boot/#将uImage文件覆盖原有第一分区uImage文件
If the system is installed in a TF card, do the following:
Mount/dev/mmcblk0p1/mnt #挂载TF系统第一分区到mnt目录
CP p1/uimage/mnt/#将uImage文件覆盖原有第一分区uImage文件
Umount/mnt #取消第一分区挂载
Cp-a p2/lib/#拷贝p2文件夹下文件到系统lib目录
Chown root:root-r/lib/modules #修改文件属性

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.