1 second boot QT app in linux-sunxi with A10

858 views
Skip to first unread message

threewater

unread,
Apr 21, 2013, 4:33:06 AM4/21/13
to linux...@googlegroups.com

http://v.youku.com/v_show/id_XNTQ1OTk3NTAw.html

=== Hardware ===
Allwinner A10 @ 1GHz
DDR3 RAM 512MB
NAND Flash 4GB

=== Software ===
1. boot: nand boot with yuq uboot mtd
2. kernel: linux-sunxi 3.4
3. rootfs: squashfs
4. QT 4.7.4(.ttf font for Chinese)

Oliver Schinagl

unread,
Apr 21, 2013, 5:43:28 AM4/21/13
to linux...@googlegroups.com
On 04/21/13 10:33, threewater wrote:
>
> http://v.youku.com/v_show/id_XNTQ1OTk3NTAw.html

Wow, that is insanly fast. This a framebuffer QT app? Do I dare ask for
a rootfs to replicate this myself? Probably won't work without the
correct hardware ...

How did you make it boot that fast?
>
> === Hardware ===
> Allwinner A10 @ 1GHz
> DDR3 RAM 512MB
> NAND Flash 4GB
>
> === Software ===
> 1. boot: nand boot with yuq uboot mtd
> 2. kernel: linux-sunxi 3.4
> 3. rootfs: squashfs
> 4. QT 4.7.4(.ttf font for Chinese)
>
> --
> You received this message because you are subscribed to the Google
> Groups "linux-sunxi" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to linux-sunxi...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

threewater

unread,
Apr 21, 2013, 6:37:23 AM4/21/13
to linux...@googlegroups.com, olive...@schinagl.nl
yes. it is a framebuffer QT app (static link) .
the rootfs have only two file:
1. init -> static link qt app and some initial code(e.g. mount /dev, mknod)
2. a font file(.ttf)

total squashfs size is about 7MB. Linux kernel is 2MB. both compressed with lzo.
I just want to test the yuq mtd performance.

time detail ( got it by grabserial ):

[1.690000 1.690000] U-Boot SPL 2013.01-05984-g2120a27-dirty (Apr 17 2013 - 14:22:02)
[0.009000 0.009000] Board: EM6000
[0.012000 0.003000] DRAM: 512MB
[1.014000 1.002000] init startup v1.1
[1.016000 0.002000] mount usr data error 2
[1.158000 0.142000] Could not read calibration: "/data/etc/pointercal"
[1.166000 0.008000] Couldnt open tslib config file: No such file or directory
[1.175000 0.009000] QWSTslibMouseHandlerPrivate: ts_config() failed with error: 'No such file or directory'
[1.187000 0.012000] Please check your tslib installation!
[1.200000 0.013000] qt show

total time aboue 1.2 second.
1.002s for spl load kernel, boot, mount squshfs on MTD and init...

squashfs on nand MTD still have problem when bad blocks in the partition.
Do you have any ideas?

在 2013年4月21日星期日UTC+8下午5时43分28秒,Oliver Schinagl写道:

Tom Cubie

unread,
Apr 22, 2013, 5:51:37 AM4/22/13
to linux...@googlegroups.com
On Sun, Apr 21, 2013 at 4:33 PM, threewater <three...@gmail.com> wrote:
>
> http://v.youku.com/v_show/id_XNTQ1OTk3NTAw.html

Amazing.

>
> === Hardware ===
> Allwinner A10 @ 1GHz
> DDR3 RAM 512MB
> NAND Flash 4GB
>
> === Software ===
> 1. boot: nand boot with yuq uboot mtd
> 2. kernel: linux-sunxi 3.4
> 3. rootfs: squashfs
> 4. QT 4.7.4(.ttf font for Chinese)
>
> --
> You received this message because you are subscribed to the Google Groups
> "linux-sunxi" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to linux-sunxi...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>



--
Keep simple, stay foolish.

threewater

unread,
Apr 22, 2013, 6:16:50 AM4/22/13
to linux...@googlegroups.com

squashfs is so fast with LZO.
a normal squashfs root, I make it with busybox dynamic link.
Detail time:
[1.770000 1.770000] U-Boot SPL 2013.01-g8a69ff9-dirty (Apr 22 2013 - 13:05:36)
[0.007000 0.007000] Board: EM6000
[0.009000 0.002000] DRAM: 512MB
[0.810000 0.801000] /etc/init.d/rcS: line 6: /data/run.sh: not found
[0.835000 0.025000]
[0.843000 0.008000] login[42]: root login on 'ttyS0'
[0.851000 0.008000] [root@(none) /root]#

0.85 second...

在 2013年4月22日星期一UTC+8下午5时51分37秒,hipboi写道:

Tom Cubie

unread,
Apr 23, 2013, 10:20:24 AM4/23/13
to linux...@googlegroups.com
On Mon, Apr 22, 2013 at 6:16 PM, threewater <three...@gmail.com> wrote:
>
> squashfs is so fast with LZO.
> a normal squashfs root, I make it with busybox dynamic link.
> Detail time:
> [1.770000 1.770000] U-Boot SPL 2013.01-g8a69ff9-dirty (Apr 22 2013 -
> 13:05:36)
> [0.007000 0.007000] Board: EM6000
> [0.009000 0.002000] DRAM: 512MB
> [0.810000 0.801000] /etc/init.d/rcS: line 6: /data/run.sh: not found
> [0.835000 0.025000]
> [0.843000 0.008000] login[42]: root login on 'ttyS0'
> [0.851000 0.008000] [root@(none) /root]#
>
> 0.85 second...

Btw, can you or yuq share something on the wiki about mtd in sunxi
u-boot and kernel?

threewater

unread,
Apr 23, 2013, 10:12:03 PM4/23/13
to linux...@googlegroups.com
yuq mtd for sunxi:
https://groups.google.com/forum/#!topic/linux-sunxi/KJ4YL_NzhWw

在 2013年4月23日星期二UTC+8下午10时20分24秒,hipboi写道:

DrOctavius1

unread,
Oct 28, 2013, 11:02:35 PM10/28/13
to linux...@googlegroups.com, olive...@schinagl.nl
Threewater, Did you found the way to manage the bad blocks with SquashFS on nand MTD?

threewater

unread,
Nov 2, 2013, 1:37:27 AM11/2/13
to linux...@googlegroups.com, olive...@schinagl.nl
i use blockrom device from https://github.com/DFE/mtd-blockrom-ftl
it can map valid block(exclude bad block) into a combine readonly block device. squashfs works well with it. But Nand flash read disturb can't support.


在 2013年10月29日星期二UTC+8上午11时02分35秒,DrOctavius1写道:

DrOctavius1

unread,
Nov 2, 2013, 2:50:38 AM11/2/13
to linux...@googlegroups.com, olive...@schinagl.nl


El sábado, 2 de noviembre de 2013 02:37:27 UTC-3, threewater escribió:
i use blockrom device from https://github.com/DFE/mtd-blockrom-ftl
it can map valid block(exclude bad block) into a combine readonly block device. squashfs works well with it. But Nand flash read disturb can't support.

What you mean by Nand flash read disturb?

Michal Suchanek

unread,
Nov 2, 2013, 10:16:32 AM11/2/13
to linux-sunxi, olive...@schinagl.nl
On 2 November 2013 07:50, DrOctavius1 <lnge...@hotmail.com> wrote:
>
>
> El sábado, 2 de noviembre de 2013 02:37:27 UTC-3, threewater escribió:
>>
>> i use blockrom device from https://github.com/DFE/mtd-blockrom-ftl
>> it can map valid block(exclude bad block) into a combine readonly block
>> device. squashfs works well with it. But Nand flash read disturb can't
>> support.
>>
> What you mean by Nand flash read disturb?

Probably the fact that nand blocks go bad over time as you read them.

Thanks

Michal
Reply all
Reply to author
Forward
0 new messages