Welcome! Log In Create A New Profile

Advanced

new NAND u-boot-multi version

Posted by gnexus 
new NAND u-boot-multi version
October 16, 2012 09:58AM
The new u-boot-multi NAND version has support for booting Linux from NAND, and it will also have the memory timing fixes needed to boot problematic devices such as Mele 1.7 and others.

Edit: The timing change was reverted, as, contrary to info from guillame, it is only needed for MMC SPL. That is what hno said anyway. I have no way to test. So YMMV. . .

Worked fine for me booting both Android and Linux from NAND, and Linux from MMC, etc.



Edited 2 time(s). Last edit at 10/24/2012 03:02PM by gnexus.
Attachments:
open | download - u-boot.multi.sun4i.nand.13102012.tar.bz2 (151.6 KB)
Re: Testers needed to evaluate new u-boot-multi version
October 17, 2012 10:33AM
@guillaume

You are one that requested this. So maybe you can test on one of your 32? It can't hurt to take one out of service for a few mins. to help improve the platform. I really need feedback. I don't like being the only tester. . .
Re: Testers needed to evaluate new u-boot-multi version
October 17, 2012 02:04PM
hi,

I'm not living in my datacenter but i have spares ;-) i will try to do a test tomorrow and as you, i have not a lot of time.
The last v1.7 i got have a kind of antenna soldered on the board. I will try to make pictures of it. I don't know exactly what is it for... wifi ? nfc ? don't know. You'll see.
Re: Testers needed to evaluate new u-boot-multi version
October 17, 2012 03:27PM
THANKS! Currently I'm adding the NAND Linux support to the MMC version. It works for me, but it would be nice to have other testers to hopefully locate any possible bugs. I used your DDR timing patch on the NAND version. But hno has further timing updates for uboot-allwinner that I plan to add to the final versions.

Quote

wifi ? nfc

Mele does not have NFC. So I would expect it is for wifi.
Re: Testers needed to evaluate new u-boot-multi version
October 18, 2012 03:06AM
Some guys around reports me the patched version from the test package i've made to check between spl and u-boot is working and not anymore the hno current tree + patch PLL.

Strange. I will test it.
Re: Testers needed to evaluate new u-boot-multi version
October 18, 2012 11:01AM
This thread is for the NAND version. No SPL. I changed thread title to reflect that.

I thought you were using NAND version for all those Mele's? Please don't tell me you have an MMC in each one!
Re: Testers needed for new NAND u-boot-multi version
October 19, 2012 01:20PM
classic u-boot on MMC for the automatic install.

Reformating the nand, put my kernel and reuse the stock uboot from nanda to boot on nandb (3.9Go). Simple and easy. I think there was no m-uboot when i have start.
Re: Testers needed for new NAND u-boot-multi version
October 19, 2012 02:52PM
Quote

reuse the stock uboot from nanda to boot on nandb

Ah. Okay. I figured you compiled lichee from hno or hipboi with your own env. But I suppose you could just use serial to edit the existing env.

Quote

I think there was no m-uboot when i have start.

No. There was not.

The NAND multi version should be very helpful to many who don't have serial, who want to also keep Android, or who have MMC in the slot but do not always to boot from it.
Claudio
Re: Testers needed for new NAND u-boot-multi version
October 22, 2012 04:56AM
Hello,
everything ok using multi u-boot 'Linux on NAND'.

Just one question. Linaro (i use as rootfs, but Ubuntu/Lubuntu the same) show 320M of memory.
Using the mem=512M parameter in u-boot should be solved, but how we can put this parameter in uboot.conf (useful text version instead image file)??

Thank you
Claudio
> Just one question. Linaro (i use as rootfs, but
> Ubuntu/Lubuntu the same) show 320M of memory.
> Using the mem=512M parameter in u-boot should be
> solved, but how we can put this parameter in
> uboot.conf (useful text version instead image
> file)??

Hello,

you need to use boot.scr file. This works for me (tested on MK802+ with NAND U-Boot):

1. Create file linux/conf.d/boot.cmd on nanda partition
2. Content of boot.cmd:

setenv bootargs console=ttyS0,115200 root=/dev/mmcblk0p2 mem=512M loglevel=8 rootwait
fatload nand 0 0x43000000 script.bin
fatload nand 0 0x44000000 linux/uImage
fatload nand 0 0x45000000 linux/uInitrd
bootm 0x44000000 0x45000000

Note: Modify bootargs as per your needs (e.g. set your root device, include modules in rd.driver.post="" if you use them, etc.)

3. Compile boot.cmd (you need to install uboot-mkimage package):

mkimage -C none -A arm -T script -d boot.cmd boot.scr

Now U-boot should pick up boot.scr file and use boot instructions from it.
After boot Linux shows following kernel parameterers:

cat /proc/cmdline
console=ttyS0,115200 root=/dev/mmcblk0p2 mem=512M loglevel=8 rootwait

cat /var/log/syslog | grep Memory:
Jan 1 01:00:38 prgvn1002 kernel: [ 0.000000] Memory: 512MB = 512MB total
Jan 1 01:00:38 prgvn1002 kernel: [ 0.000000] Memory: 380720k/380720k available, 143568k reserved, 0K highmem
Claudio
Re: new NAND u-boot-multi version
November 08, 2012 09:52AM
Solved without compiling any other boot files.
The workaround is append the "mem=512M" to already defined variables, as "mac".
That is (example):

mac=<mac_address> mem=512M

Regards,
Claudio


To save memory (MALI reserved), i hope someone could compile 3.0.39+ or 3.0.42+ without MALI=Y flag. This will be for server purpose.
The_ccm
Re: Testers needed for new NAND u-boot-multi version
December 25, 2012 04:03AM
jees Wrote:
> Hello,
>
> you need to use boot.scr file. This works for me
> (tested on MK802+ with NAND U-Boot):
>
> 1. Create file linux/conf.d/boot.cmd on nanda
> partition
> 2. Content of boot.cmd:


Hi,

which image did you use for your MK802+ ? I tried many image, uboot, script.bin and so on and it does not work at all. Mine is labelled MK802+ , inside it uses an A10S (not a A10) processor.

many thanks.
McDaddy
Re: Testers needed for new NAND u-boot-multi version
January 21, 2013 03:18PM
The_ccm Wrote:
-------------------------------------------------------
> Hi,
>
> which image did you use for your MK802+ ? I tried
> many image, uboot, script.bin and so on and it
> does not work at all. Mine is labelled MK802+ ,
> inside it uses an A10S (not a A10) processor.
>
> many thanks.

I've had the SAME problem. My guess is the u-boot is different for the A10s because it shows as a sun5i instead of a sun4i. I've even tried looking for a version that would boot on the AllWinner A13. I believe that too is a sun5i.
The_ccm
Re: Testers needed for new NAND u-boot-multi version
January 22, 2013 04:21PM
Yep A10s is closer that A13 rather than A10. So Sun5i is a good choice, but before I think U-Boot is different as you said and Pio mapping have to be found on that processor I think this is the key to have a first success with it. Unfortunatly informations are very poor after spending hours to search :/
Re: Testers needed for new NAND u-boot-multi version
January 24, 2013 10:03AM
http://linux-sunxi.org/A10s

------------------------------------------------------------
My A10 tablet (Point Of View [NL] ProTab2XXL 10" ICS)
Hello,

How did u implement fatload for nand? How can i implement the same in my U-Boot 2012.07 code? Which version of U-Boot are you using which has support for fatload nand?
Is it possible to share the reference code or reference document.

I want to implement this functionality for my IPQ8064 SOC to boot kernel from an mtd partition of FAT filesystem.

Thanks.
AP Wrote:

jees Wrote:
-------------------------------------------------------
> > Just one question. Linaro (i use as rootfs, but
> > Ubuntu/Lubuntu the same) show 320M of memory.
> > Using the mem=512M parameter in u-boot should
> be
> > solved, but how we can put this parameter in
> > uboot.conf (useful text version instead image
> > file)??
>
> Hello,
>
> you need to use boot.scr file. This works for me
> (tested on MK802+ with NAND U-Boot):
>
> 1. Create file linux/conf.d/boot.cmd on nanda
> partition
> 2. Content of boot.cmd:
>
> setenv bootargs console=ttyS0,115200
> root=/dev/mmcblk0p2 mem=512M loglevel=8 rootwait
> fatload nand 0 0x43000000 script.bin
> fatload nand 0 0x44000000 linux/uImage
> fatload nand 0 0x45000000 linux/uInitrd
> bootm 0x44000000 0x45000000
>
> Note: Modify bootargs as per your needs (e.g. set
> your root device, include modules in
> rd.driver.post="" if you use them, etc.)
>
> 3. Compile boot.cmd (you need to install
> uboot-mkimage package):
>
> mkimage -C none -A arm -T script -d boot.cmd
> boot.scr
>
> Now U-boot should pick up boot.scr file and use
> boot instructions from it.
> After boot Linux shows following kernel
> parameterers:
>
> cat /proc/cmdline
> console=ttyS0,115200 root=/dev/mmcblk0p2 mem=512M
> loglevel=8 rootwait
>
> cat /var/log/syslog | grep Memory:
> Jan 1 01:00:38 prgvn1002 kernel: [ 0.000000]
> Memory: 512MB = 512MB total
> Jan 1 01:00:38 prgvn1002 kernel: [ 0.000000]
> Memory: 380720k/380720k available, 143568k
> reserved, 0K highmem

Hi Jees,

How did u implement fatload for nand? How can i implement the same in my U-Boot 2012.07 code? Which version of U-Boot are you using which has support for fatload nand?
Is it possible to share the reference code or reference document.

I want to implement this functionality for my IPQ8064 SOC to boot kernel from an mtd partition of FAT filesystem.

Thanks.
Author:

Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: