3.17 kernel from mmind git repo

451 views
Skip to first unread message

Toby Wintermute

unread,
Sep 9, 2014, 10:54:21 PM9/9/14
to ra...@googlegroups.com
Hi,
I wondered if anyone has had success using the https://github.com/mmind/linux-rockchip/tree/devel/workbench kernel on the Radxa?
If so, care to share any hints or tips?

thanks,
Toby

Tom Cubie

unread,
Sep 9, 2014, 10:57:00 PM9/9/14
to Toby Wintermute, ra...@googlegroups.com
You can refer this to build the kernel

http://wiki.radxa.com/Rock/Linux_Mainline

more info about the mainline kernel(status, what's working/not
working) are welcomed to be added.

>
> thanks,
> Toby
>
> --
> You received this message because you are subscribed to the Google Groups
> "radxa" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to radxa+un...@googlegroups.com.
> To post to this group, send email to ra...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/radxa/10283e3f-3b7b-4ce7-9522-95c32bbeecea%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.



--
radxa rock - quad core arm computer that rocks

radxa.com

Toby Corkindale

unread,
Sep 10, 2014, 12:42:47 AM9/10/14
to ra...@googlegroups.com
Thanks Tom.
The part I was missing was:
cat arch/arm/boot/zImage arch/arm/boot/dts/rk3188-radxarock.dtb > kernel.img

I can boot the 3.17-rc1+ kernel from mmind's tree, which I hear is a
bit further ahead than the mainline kernel.. but it's still no-go on
the NAND, so booting beyond initramfs is not possible.

:(
--
Turning and turning in the widening gyre
The falcon cannot hear the falconer
Things fall apart; the center cannot hold
Mere anarchy is loosed upon the world

Naoki FUKAUMI

unread,
Sep 10, 2014, 12:50:44 AM9/10/14
to Toby Corkindale, ra...@googlegroups.com
hi

On Wed, Sep 10, 2014 at 1:42 PM, Toby Corkindale <to...@dryft.net> wrote:
> I can boot the 3.17-rc1+ kernel from mmind's tree, which I hear is a
> bit further ahead than the mainline kernel.. but it's still no-go on
> the NAND, so booting beyond initramfs is not possible.

there are sdmmc, usb, ethernet. you can develop further :)

Toby Corkindale

unread,
Sep 10, 2014, 12:56:04 AM9/10/14
to Naoki FUKAUMI, ra...@googlegroups.com
Cheers! iPXE booting would be neat.
Do you have any hints for getting an initrd going that contains enough
to bootstrap from it?

Do you think NAND support for the Radxa will ever occur on a mainline kernel?

Naoki FUKAUMI

unread,
Sep 10, 2014, 1:06:48 AM9/10/14
to Toby Corkindale, ra...@googlegroups.com
On Wed, Sep 10, 2014 at 1:56 PM, Toby Corkindale <to...@dryft.net> wrote:
> Cheers! iPXE booting would be neat.
> Do you have any hints for getting an initrd going that contains enough
> to bootstrap from it?

I'm using my own initramfs (based on http://androtab.info/miniroot/).
but there is no restriction, please use/make any initramfs.

> Do you think NAND support for the Radxa will ever occur on a mainline kernel?

it's matter of Rockchip. Rockchip contributes mainline a lot (for
RK3288), but I don't expect so much.

Toby Corkindale

unread,
Sep 10, 2014, 1:23:54 AM9/10/14
to ra...@googlegroups.com
For these mainline kernels, is the initramfs coming from the
CONFIG_SOURCE_INITRAMFS archive during the kernel build, or from the
--ramdisk parameter of mkbootimg?

Naoki FUKAUMI

unread,
Sep 10, 2014, 1:44:06 AM9/10/14
to Toby Corkindale, ra...@googlegroups.com
On Wed, Sep 10, 2014 at 2:23 PM, Toby Corkindale <to...@dryft.net> wrote:
> For these mainline kernels, is the initramfs coming from the
> CONFIG_SOURCE_INITRAMFS archive during the kernel build, or from the
> --ramdisk parameter of mkbootimg?

I tried only CONFIG_SOURCE_INITRAMFS for now. you may try another method.

Toby Corkindale

unread,
Sep 10, 2014, 10:19:12 PM9/10/14
to ra...@googlegroups.com
On 10 September 2014 14:50, Naoki FUKAUMI <nao...@gmail.com> wrote:
Hi Naoki,
I'm sorry, I've thoroughly failed to get the SD card working in 3.17.
If you have a minute, would you be happy to upload your kernel's
.config to gist.github.com or similar?
Having a known-good kernel config would be a big help. At the moment I
don't know what I'm doing wrong.

Cheers,
Toby

Naoki FUKAUMI

unread,
Sep 10, 2014, 10:24:51 PM9/10/14
to Toby Corkindale, ra...@googlegroups.com
On Thu, Sep 11, 2014 at 11:19 AM, Toby Corkindale <to...@dryft.net> wrote:
> I'm sorry, I've thoroughly failed to get the SD card working in 3.17.
> If you have a minute, would you be happy to upload your kernel's
> .config to gist.github.com or similar?
> Having a known-good kernel config would be a big help. At the moment I
> don't know what I'm doing wrong.

mmind's devel/workbench is updated very frequently, it may work, or it
may not work. and generally "current status" includes patches floating
around.

I'll try to prepare working snapshot...

Toby Wintermute

unread,
Oct 15, 2014, 8:48:18 PM10/15/14
to ra...@googlegroups.com
Hi Naoki,
I just wondered if you'd had time to prepare a known-good kernel config and kernel source snapshot?
Maybe just something as simple as cloning a repo (mmind or other?) on Github, making a tag like "this-works" on a point you know works, and committing your own kernel config as-is?

I've tried to get somewhere myself a few times, but so many combinations of kernel options result in either no hardware (sd, network) working, or the board crashing out straight away.

-Toby

Naoki FUKAUMI

unread,
Oct 17, 2014, 8:49:25 PM10/17/14
to ra...@googlegroups.com
Hi,

On Thu, Oct 16, 2014 at 9:48 AM, Toby Wintermute <to...@dryft.net> wrote:
> I just wondered if you'd had time to prepare a known-good kernel config and
> kernel source snapshot?
> Maybe just something as simple as cloning a repo (mmind or other?) on
> Github, making a tag like "this-works" on a point you know works, and
> committing your own kernel config as-is?
>
> I've tried to get somewhere myself a few times, but so many combinations of
> kernel options result in either no hardware (sd, network) working, or the
> board crashing out straight away.

I tried some
https://github.com/naobsd/linux/branches/all
but not finished yet. you may try my snapshots, but please don't think
everything is perfect.

existing snapshots branch will not be updated, it's only for temporary
testing. I'll try to make newer snapshot(s) if possible (until
mainline have all necessary patches).

getting "time" is most difficult task for me... ;)

--
http://androtab.info/

Toby Corkindale

unread,
Oct 20, 2014, 1:40:39 AM10/20/14
to ra...@googlegroups.com
Thanks, I'll give these a try. Appreciate you taking the time.
> --
> You received this message because you are subscribed to a topic in the Google Groups "radxa" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/topic/radxa/KKQLCN6j32k/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to radxa+un...@googlegroups.com.
> To post to this group, send email to ra...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/radxa/CAFnsNoSOSi9GLvuC2FHUatwZshPM8PoTfRcpO0_c2TH9r81hcQ%40mail.gmail.com.
> For more options, visit https://groups.google.com/d/optout.



--

Toby Corkindale

unread,
Oct 27, 2014, 12:22:54 AM10/27/14
to ra...@googlegroups.com
For for anyone else out there, here's some instructions to get a
bootable system using SD card as root filesystem.
Get the rockchip/snapshot-20140928 branch from Naoki's github.

export ARCH=arm
export CROSS_COMPILE=arm-linux-gnueabihf-
make rk30_rk31_defconfig
make menuconfig
--> navigate to General Support, and DESELECT the initramfs support.
--> exit config, saving as you go.
make -j6 zImage modules
cat arch/arm/boot/zImage arch/arm/boot/dts/rk3188-radxarock-full.dtb
> /tmp/kernel.img
mkbootimg --kernel /tmp/kernel.img --ramdisk /dev/null \
--cmdline "console=ttyFIQ0 console=tty0 root=/dev/mmcblk0p1
rootfstype=ext4 init=/sbin/init" \
-o /tmp/boot.img

Then use rkflashkit to flash boot.img onto your boot partition of the
Radxa NAND.

If you want a boot.img I've prepared earlier, so you can skip all
that, just grab:
http://vps.dryft.net/radxa/tjc_boot_v1.img


You then need to get yourself a root filesystem (I used the linaro
server base) and add the built kernel modules (from above) to it.
You'll also want to configure something into /etc/hostname and add the
following to /etc/fstab:

/dev/mmcblk0p1 / ext4 rw,relatime 0 1
none /tmp tmpfs defaults 0 0
none /var/tmp tmpfs defaults 0 0

Don't forget to configure the network if you want to use that.


As it stands, I have a booted, networked Radxa running 3.17-rc6+
kernel on Ubuntu/Linaro 14.04 now.
I'm happy :)

Thanks to Naoki for doing all the hard work to assemble a working
kernel snapshot.

-Toby


Toby

Naoki FUKAUMI

unread,
Oct 27, 2014, 12:32:12 AM10/27/14
to ra...@googlegroups.com
Hi,

console tty name is ttyS2 on mainline, you may need to prepare
/etc/init/ttyS2.conf. (it depends on distro/rootfs configuration)

(I'm sorry, I cannot prepare newer tree yet...)
> You received this message because you are subscribed to the Google Groups "radxa" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to radxa+un...@googlegroups.com.
> To post to this group, send email to ra...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/radxa/CABEgq96eOwxK1Cw%2BAtcruZKUg8Mup2_LdVtkJ4Pj2cCowd4N_w%40mail.gmail.com.

lum...@gmail.com

unread,
Nov 1, 2014, 4:02:27 AM11/1/14
to ra...@googlegroups.com
Dear Toby Wintermute,

nice to see you are successful on getting a recent kernel to work on radxa.

Are you using a rockchip pro?

> For for anyone else out there, here's some instructions to get a
> bootable system using SD card as root filesystem.
> Get the rockchip/snapshot-20140928 branch from Naoki's github.
>
> export ARCH=arm
> export CROSS_COMPILE=arm-linux-gnueabihf-
> make rk30_rk31_defconfig
> make menuconfig
> --> navigate to General Support, and DESELECT the initramfs support.
> --> exit config, saving as you go.
> make -j6 zImage modules
> cat arch/arm/boot/zImage arch/arm/boot/dts/rk3188-radxarock-full.dtb
> > /tmp/kernel.img
> mkbootimg --kernel /tmp/kernel.img --ramdisk /dev/null \
> --cmdline "console=ttyFIQ0 console=tty0 root=/dev/mmcblk0p1
> rootfstype=ext4 init=/sbin/init" \
> -o /tmp/boot.img
>
> Then use rkflashkit to flash boot.img onto your boot partition of the
> Radxa NAND.
>
> If you want a boot.img I've prepared earlier, so you can skip all
> that, just grab:
> http://vps.dryft.net/radxa/tjc_boot_v1.img
>

I have some trouble to boot a 3.17. kernel on my rockchip pro. I am a
little bit confused about the partitions on the sd-card, how to generate
them and what to put in the parameter file.
You told in the radxa community that you put a complete set of stuff (kernel, paramater, image) online. Unfortunately this package is not available at the
moment.
I would like to have a look on a working sdcard partition and a working parameter file to go on with this rockchip pro.

Perhaps you can put again some light on it!?

Thank you for your effort,

regads, lumax!

Toby Corkindale

unread,
Nov 2, 2014, 6:58:18 PM11/2/14
to ra...@googlegroups.com
On 1 November 2014 19:02, <lum...@gmail.com> wrote:
> Dear Toby Wintermute,
>
> nice to see you are successful on getting a recent kernel to work on radxa.
>
> Are you using a rockchip pro?

I don't think so? I have a Radxa Rock board.

>> If you want a boot.img I've prepared earlier, so you can skip all
>> that, just grab:
>> http://vps.dryft.net/radxa/tjc_boot_v1.img
>>
>
> I have some trouble to boot a 3.17. kernel on my rockchip pro. I am a
> little bit confused about the partitions on the sd-card, how to generate
> them and what to put in the parameter file.
> You told in the radxa community that you put a complete set of stuff (kernel, paramater, image) online. Unfortunately this package is not available at the
> moment.

Ah, I entered the wrong URL on the google groups post. Sorry.
It should be:
http://vps.dryft.net/radxa/radxa_boot_bits.7z
It includes:
kernel.img (zimage + devicetree)
boot.img (kernel.img plus a null initrd via mkbootimg)
parameter-linux.img (parameter-linux created via rkcrc -p)
rootfs.img (ext4 filesystem for sdcard)

To boot, I flash the boot.img from there to the boot partition on the
Radxa NAND, and then I take an sdcard, with one partition filling the
card, and dd rootfs.img to it. That works for me.

I tried making an actual all-in-one SDcard image, but I couldn't get
it to work by following Naoki's info here:
http://androtab.info/radxa_rock/sdboot/
But when I tried booting, I just received error messages on the Radxa.
I wasn't sure how I was supposed to be making partitions on the sdcard.

-Toby
Message has been deleted

Naoki FUKAUMI

unread,
Nov 3, 2014, 6:15:14 PM11/3/14
to ra...@googlegroups.com
On Mon, Nov 3, 2014 at 9:27 PM, <lum...@gmail.com> wrote:
> My 3.17 kernel is booting, but failed with a kernel panic when loading the
> rootfs:
:
> mmcblk0: mmc0:e624 SU04G 3.69 GiB
> mmcblk0: unknown partition table

did you make a partition and make root file systen on it?

if you used whole disk (not a partition) to make root file system, you
have to specify mmcblk0 instead of mmcblk0pX.

--
http://androtab.info/

Lumax

unread,
Nov 4, 2014, 1:26:05 AM11/4/14
to ra...@googlegroups.com
Am Dienstag, 4. November 2014 00:15:14 UTC+1 schrieb Naoki FUKAUMI:
> On Mon, Nov 3, 2014 at 9:27 PM, lumax
> > My 3.17 kernel is booting, but failed with a kernel panic when loading the
> > rootfs:
> :
Dear Naoki FUKAUMI,

> > mmcblk0: mmc0:e624 SU04G 3.69 GiB
> > mmcblk0: unknown partition table
>
> did you make a partition and make root file systen on it?
>
> if you used whole disk (not a partition) to make root file system, you
> have to specify mmcblk0 instead of mmcblk0pX.
>

You are right!
Using a proper partition table makes the kernel boot the rootfs!

I wonder if the kernel is able to drive HDMI?
This first attemps doesn´t work for HDMI.

@Tobi
You have a Ubuntu/Linaro X system running with HDMI output on the
3.17 kernel ?

Cheers, lumax.

Naoki FUKAUMI

unread,
Nov 4, 2014, 1:29:51 AM11/4/14
to ra...@googlegroups.com
On Tue, Nov 4, 2014 at 3:26 PM, Lumax <lum...@gmail.com> wrote:
> I wonder if the kernel is able to drive HDMI?

no, not yet.

--
http://androtab.info/
Reply all
Reply to author
Forward
0 new messages