Rockchip官方純linux,kernel4.4.0
http://rockchip.wikidot.com/Rockchip官方純linux,kernel4.4.0
比現在firefly的kernel 3.10.0還新很多
而且firefly算是android轉過來的linux
高手可以研究看看嗎??
來分享給大家
这个好。。。。收下。。 不知与firefly RK3288板子兼容性可好?有人吃螃蟹吗~ http://rockchip.wikidot.com/linux-user-guide
按照說明把u-boot , kernel 都編譯出來了
可是
emmc boot
sd boot
通通失敗 , 都無法讓firefly 進入u-boot
不理解阿??? 高手在哪
Booting from emmc
Writing to the board with USB
For USB to work you must get your board into ROM boot mode, either by erasing
your MMC or holding the recovery button when you boot the board.
rk3288(upgrade_tool)
To create a suitable image and write it to the board:
tools/mkimage -n rk3288 -T rksd -d spl/u-boot-spl-dtb.bin u-boot-dtb.bin(normal)
tools/mkimage -n rk3288 -T rksd -d spl/u-boot-spl-nodtb.bin u-boot-dtb.bin(firefly)
sudo upgrade_tool db../rkbin/rk32/rk3288_boot.bin
sudo upgrade_tool wl 64 u-boot-dtb.bin ------------fail
sudo upgrade_tool wl 256 u-boot.img ---------------fail
sudo upgrade_tool rd
Booting from sdcard
Flash uboot
To write an image that boots from an SD card (assumed to be /dev/sdb)
(u-boot-spl-nodtb.bin for firefly)
tools/mkimage -n rk3288 -T rksd -d spl/u-boot-spl-dtb.bin out&&
sudo dd if=out of=/dev/sdb seek=64&&sudo dd if=u-boot-dtb.img of=/dev/sdb seek=256
Format sdcard
Enter into the uboot and issue the following command:
(otg should be connected, maskrom should be pressed)
gpt write mmc 0 $partitions
ums 0 mmc 0 这流程和现在的 firefly 硬体对得上吗?:o glchild514 发表于 2016-9-1 14:03
http://rockchip.wikidot.com/linux-user-guide
按照說明把u-boot , kernel 都編譯出來了
发现在linux擦不了flash,用windows下的androidtool先擦后在操作都可以烧进了。但启动不起来。提示:
U-Boot SPL 2016.09-rc1 (Sep 01 2016 - 20:26:22)
Trying to boot from MMC1
spl: mmc init failed with error: -95
SPL: failed to boot from all boot devices
### ERROR ### Please RESET the board ###
还在摸索中。。。。 我是sd boot
卡在讀不到zImage , 可是我真的有放到裡面
U-Boot SPL 2016.09-rc1-g5405817-dirty (Sep 01 2016 - 15:46:15)
Trying to boot from MMC1
U-Boot 2016.09-rc1-g5405817-dirty (Sep 01 2016 - 15:46:15 +0800)
Model: Firefly-RK3288
DRAM:2 GiB
MMC: dwmmc@ff0c0000: 0, dwmmc@ff0f0000: 1
*** Warning - bad CRC, using default environment
stdio_add_devices: Video device failed (ret=-19)
In: serial
Out: serial
Err: serial
Net: Net Initialization Skipped
No ethernet found.
Hit any key to stop autoboot:0
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:6...
Found /extlinux/extlinux.conf
Retrieving file: /extlinux/extlinux.conf
reading /extlinux/extlinux.conf
169 bytes read in 7 ms (23.4 KiB/s)
1: kernel-4.4
Retrieving file: /zImage
reading /zImage
**Unable to read file /zImage
for failure retrieving kernel
SCRIPT FAILED: continuing...
** First descriptor is NOT a primary desc on 1:1 **
switch to partitions #0, OK
mmc1(part 0) is current device
** No partition table - mmc 1 **
=> 原来在虚拟机下面操作总是不行,现找了个硬盘装单系统ubuntu操作后。TF卡启动正常了。还差rootfs.
U-Boot 2016.09-rc1 (Sep 04 2016 - 11:01:46 +0800)
Model: Firefly-RK3288
DRAM:2 GiB
MMC: dwmmc@ff0c0000: 0, dwmmc@ff0f0000: 1
*** Warning - bad CRC, using default environment
stdio_add_devices: Video device failed (ret=-19)
In: serial
Out: serial
Err: serial
Net: Net Initialization Skipped
No ethernet found.
Hit any key to stop autoboot:0
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Found /extlinux/extlinux.conf
Retrieving file: /extlinux/extlinux.conf
reading /extlinux/extlinux.conf
165 bytes read in 5 ms (32.2 KiB/s)
1: kernel-4.4
Retrieving file: /zImage
reading /zImage
6397072 bytes read in 460 ms (13.3 MiB/s)
append: earlyprintk console=ttyS2,115200n8 rw root=/dev/mmcblk0p7 rootfstype=ext4 init=/sbin/init
Retrieving file: /rk3288-fennec.dtb
reading /rk3288-fennec.dtb
36951 bytes read in 8 ms (4.4 MiB/s)
## Flattened Device Tree blob at 01f00000
Booting using the fdt blob at 0x1f00000
Loading Device Tree to 1fff3000, end 1ffff056 ... OK
Starting kernel ...
[ 0.000000] Booting Linux on physical CPU 0x500
[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Initializing cgroup subsys cpuacct
[ 0.000000] Linux version 4.4.16 (sen@ubuntu64) (gcc version 5.4.0 20160609 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.1) ) #1 SMP Sun Sep 4 11:08:50 CST 2016
[ 0.000000] CPU: ARMv7 Processor revision 1 (ARMv7), cr=10c5387d
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
你真的可以讀到zImage耶
虛擬機器不行是什麼意思 , 我真的是虛擬機器
可是我zImage真的有放到 /dev/sdb6
你的步驟是什麼
可不可以說一下 本帖最后由 solosen 于 2016-9-5 13:02 编辑
glchild514 发表于 2016-9-5 10:59
你真的可以讀到zImage耶
虛擬機器不行是什麼意思 , 我真的是虛擬機器
之前是在win10下跑的虚拟机32位ubuntu,发现在uboot下用otg挂TF卡到ubuntu,怎样都挂不了。/dev下没有相关设备。在非虚拟机下没这问题 。 另外你要看看zImage是放在TF卡第一分区,具体是不是sdb6要看清楚了。昨天折腾了一下rootfs,但内核挂载不上。但uboot下用指令可以挂载。也能正常读到里面文件。。