Firefly Open Source Community

Title: Building your own kernel [Print This Page]

Author: peda    Time: 2/15/2018 18:38
Title: Building your own kernel
Last edited by peda In 2/15/2018 18:42 Editor

Hi!

I'm trying to build my own kernel and run that with some debian distribution. After some searching I started with the guide at http://rockchip.wikidot.com/linux-user-guide but these directions seem to fail for me. Here's what I do:

mkdir rk-linux
cd rk-linux
repo init -u https://github.com/rockchip-linux/manifests
repo sync
build/mk-kernel.sh rk3288-firefly
build/mk-uboot.sh rk3288-firefly
build/mk-image.sh -c rk3288 -t boot
build/mk-image.sh -c rk3288 -t system -r linaro-rootfs.img
build/flash_tool.sh -p system -i out/system.img

This is not exactly as described in the linux-user-guide, since it has a "-s 3000" on the second mk-image.sh invocation, but the provided mk-image.sh does not support -s so the guide is clearly wrong (or perhaps just out of date). The above is however consistent with the top README.md after syncing the repo manifest.

Before running flash_tool.sh, I put the device in MaskRom mode, and the flashing seems to work fine. I get this output:

PARTITIONS OFFSET: 0 sectors.
Downloading bootloader succeeded.
Write LBA from file (100%)
Reset Device OK.

After that the board is restarted automatically (as indicated) and I get this on the serial console:

U-Boot SPL 2017.09-g515bbbdeca (Feb 15 2018 - 09:30:26)
Returning to boot ROM...

U-Boot 2017.09-g515bbbdeca (Feb 15 2018 - 09:30:26 +0100)
Model: Firefly-RK3288
DRAM:  2 GiB
MMC:   dwmmc@ff0c0000: 1, dwmmc@ff0f0000: 0
*** Warning - bad CRC, using default environment

And then nothing happens. I got the linaro-rootfs.img file from a tar-ball named "rootfs-debian-20171225(fix a stupid mistake, affect performance since 20170901).tar.gz" that I got from some rockchip site, but that seems unlikely to matter when the problem appears to be that u-boot can't find the dtb and/or the kernel.

At one point I thought that the boot.img that is built with the first mk-image.sh invocation wasn't flashed, but looking in the mk-image.sh script for how out/system.img is generated in the second mk-image.sh invocation, boot.img is indeed added to the system.img so that's not it.

What am I doing wrong?

Cheers,
Peter


Author: leungÏÈÉ­    Time: 2/23/2018 14:34
http://en.t-firefly.com/doc/product/index/id/4.html
Author: shopecs    Time: 11/13/2024 18:34
ECS offers the best Women Shoes Online in Pakistan. Explore the best shoes for women like heels, slippers, sandals, khussa, and many more online at ECS. Order your favorite women's shoes online at reasonable prices.
Author: adoroshoes    Time: 11/13/2024 18:42
Discover the Best collection of men shoes at Adoro. From casual sneakers to formal dress shoes, find your perfect pair for any occasion.
Author: Gulaal    Time: 11/13/2024 19:45
Make your Barat celebration extraordinary with Gulaal's bridal dresses for barat. Our collection features opulent designs and luxurious fabrics perfect for your grand occasion.
Author: cloudnexuslab    Time: 11/13/2024 20:46
Get expert NetSuite customer support from Cloud Nexus Lab. Resolve issues quickly and efficiently with tailored assistance to maximize your software's potential. Experience top-tier service today!
Author: Mushq    Time: 7 day before
The velvet collection includes a beautiful selection of clothing and accessories made from luxurious velvet fabric. Velvet is known for its soft texture and vibrant colors, adding a touch of sophistication to any outfit.
Author: qamaash    Time: 7 day before
Qamaash is your destination for the best clothing sale on top brands in the UK. Shop now and save big on trendy outfits and exclusive brands during our limited-time sale event.
Author: afrozeh    Time: 7 day before
Are you Looking for the best quality Lawn dresses online in Pakistan? Choose from a variety of colors and styles that cater to every taste and occasion. Order your favorite lawn dress from Afrozeh. Shop now!




Welcome Firefly Open Source Community (https://bbs.t-firefly.com/) Powered by Discuz! X3.1