1. 下载image文件 u-boot, script.bin, kernel: http://pan.baidu.com/s/1i3sorhr ubuntu: http://pan.baidu.com/s/1c0paF88 2. 烧写u-boot $ sudo dd if=/dev/zero of=/dev/sdb bs=1M count=1 $ sudo dd if=u-boot-sunxi-with-spl.bin of=/dev/sdb bs=1024 seek=8 3. SD 卡分区 蓝色的部分直接回车,红色部分为输入。 --->8--- $ sudo fdisk /dev/sdb Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel Building a new DOS disklabel with disk identifier 0x67abb3e5. Changes will remain in memory only, until you decide to write them. After that, of course, the previous content won't be recoverable. Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite) Command (m for help): n Partition type: p primary (0 primary, 0 extended, 4 free) e extended Select (default p): Using default response p Partition number (1-4, default 1): Using default value 1 First sector (2048-1990655, default 2048): Using default value 2048 Last sector, +sectors or +size{K,M,G} (2048-1990655, default 1990655): +20M Command (m for help): n Partition type: p primary (1 primary, 0 extended, 3 free) e extended Select (default p): Using default response p Partition number (1-4, default 2): Using default value 2 First sector (43008-1990655, default 43008): Using default value 43008 Last sector, +sectors or +size{K,M,G} (43008-1990655, default 1906595): Using default value 1990655 Command (m for help): w The partition table has been altered! Calling ioctl() to re-read partition table. Syncing disks. ---8<--- 分区创建好了,下面进行格式化。 $ sudo mkfs.vfat /dev/sdb1 $ sudo mkfs.ext2 /dev/sdb2 4. 复制script.bin和uImage文件 $ sudo mount /dev/sdb1 /mnt $ sudo cp script.bin /mnt $ sudo cp uImage /mnt/ $ sudo umount /mnt 5. 解压ubuntu文件系统 $ sudo mount /dev/sdb2 /mnt $ sudo tar -xvf ubuntu-13.04.tgz -C /mnt (or sudo tar -jxvf ubuntu-14.04.bz2 -C /mnt) $ sudo umount /mnt 6. 将SD卡插入BananaPi上面,上电,等待着ubuntu启动起来,然后,就可以随心所欲啦。 7. 是不是不知道用户名和密码呢?猜一猜?是BananaPi呢?还是bananapi呢? 用户名:bananapi 密码:bananapi |
更多回帖