Re: [linux-sunxi] linux-sunxi/u-boot-sunxi is no longer supported, time to switch to upstream u-boot

2014-12-31 Thread Michal Suchanek
Hello,

On 28 December 2014 at 17:15, Chen-Yu Tsai  wrote:
> On Mon, Dec 29, 2014 at 12:11 AM, Hans de Goede  wrote:
>> Hi,
>>
>>
>> On 28-12-14 16:51, Jens Thiele wrote:
>>>
>>> LD  u-boot
>>> ld.bfd: error: /usr/lib/gcc/arm-linux-gnueabihf/4.9/libgcc.a(bpabi.o) uses
>>> VFP register arguments, u-boot does not
>>> ld.bfd: failed to merge target specific data of file
>>> /usr/lib/gcc/arm-linux-gnueabihf/4.9/libgcc.a(bpabi.o)
>>> ld.bfd: error: /usr/lib/gcc/arm-linux-gnueabihf/4.9/libgcc.a(_divdi3.o)
>>> uses VFP register arguments, u-boot does not
>>> ld.bfd: failed to merge target specific data of file
>>> /usr/lib/gcc/arm-linux-gnueabihf/4.9/libgcc.a(_divdi3.o)
>>> ld.bfd: error: /usr/lib/gcc/arm-linux-gnueabihf/4.9/libgcc.a(_udivdi3.o)
>>> uses VFP register arguments, u-boot does not
>>> ld.bfd: failed to merge target specific data of file
>>> /usr/lib/gcc/arm-linux-gnueabihf/4.9/libgcc.a(_udivdi3.o)
>>> Makefile:1065: recipe for target 'u-boot' failed
>>> make: *** [u-boot] Error 1
>>
>>
>> Weird, you did build upstream u-boot from source for your previous tests.
>> right?
>>
>> and then it did work, right ?
>
> It seems some recent changes in upstream broke building with hard float
> toolchains. Best use soft float.
>
> It's probably these commits:
>
> bf1af3d ARM: merge commonly-defined PLATFORM_RELFLAGS
> 3102274 ARM: refactor compiler options in config.mk
>

Is this being fixed?

Depending on particular toolchain default ABI just because somebody
decided to frob compiler options is kind of stupid.

Thanks

Michal

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [linux-sunxi] mainline uboot with sunxi-next kernel hangs for Olimex A20 Lime2

2014-12-31 Thread Gerardo Di Iorio
hi,

2014-11-15 17:22 GMT+01:00 Iain Paton :

> On 15/11/14 13:18, Vishnu Patekar wrote:
>
> > Followed the steps mentioned at
> http://linux-sunxi.org/Mainline_Kernel_Howto
> > I've enabled the DEBUG_LL, DEBUG_SUNXI_UART0 , still While booting it on
> Olimex
> > A20-OLinuXino-Lime2 
> does
> > not go beyond "starting kernel..."
>
> Without knowing what's in your boot.scr, your partition layout etc. it's
> difficult to help.
>
> The section in the mainline kernel howto relating to boot.cmd/boot.scr is
> probably
> out of date. With recent mainline u-boot like you've used, it's much
> simpler to
> use extlinux.conf. You then just need a single ext partition and can use
> zImage
> instead of uImage and avoid various problems.
>
>
but extlinux not work with vfat partition?



> My /boot/extlinux/extlinux.conf basically contains this:
>
> menu title LIME2 boot menu
> timeout 10
> ontimeout linux
> LABEL linux
> KERNEL /boot/zImage
> fdt /boot/sun7i-a20-olinuxino-lime2.dtb
> append root=/dev/mmcblk0p1 console=ttyS0,115200 ro rootwait
>
> with a repeated LABEL section for different images or append lines.
>
> My .config from a working kernel running on a lime2 can be found here
> http://pastebin.com/Znf14tqL
> (note that this is configured to be a multi platform kernel so has lots
> of stuff you don't need if you only need it to work on lime2)
>
>
> boot log using the same versions you used looks like this:
>
> U-Boot SPL 2015.01-rc1-00062-g0d485b9 (Nov 15 2014 - 14:28:17)
> DRAM: 1024 MiB
> CPU: 96000Hz, AXI/AHB/APB: 3/2/2
>
>
> U-Boot 2015.01-rc1-00062-g0d485b9 (Nov 15 2014 - 14:28:17) Allwinner
> Technology
>
> CPU:   Allwinner A20 (SUN7I)
> I2C:   ready
> DRAM:  1 GiB
> MMC:   SUNXI SD/MMC: 0
> *** Warning - bad CRC, using default environment
>
> In:serial
> Out:   serial
> Err:   serial
> SCSI:  SUNXI SCSI INIT
> SATA link 0 timeout.
> AHCI 0001.0100 32 slots 1 ports 3 Gbps 0x1 impl SATA mode
> flags: ncq stag pm led clo only pmp pio slum part ccc apst
> Net:   dwmac.1c5
> Hit any key to stop autoboot:  0
> switch to partitions #0, OK
> mmc0 is current device
> Scanning mmc 0...
> Found /boot/extlinux/extlinux.conf
> Retrieving file: /boot/extlinux/extlinux.conf
> 617 bytes read in 251 ms (2 KiB/s)
> LIME2 boot menu
> 1:  linux
> 2:  recovery
> 3:  sata
> 4:  317rc1
> Enter choice: 1:linux
> Retrieving file: /boot/zImage
> 3863048 bytes read in 376 ms (9.8 MiB/s)
> append: root=/dev/mmcblk0p1 console=ttyS0,115200 ro rootwait
> Retrieving file: /boot/sun7i-a20-olinuxino-lime2.dtb
> 23270 bytes read in 183 ms (124 KiB/s)
> Kernel image @ 0x4200 [ 0x00 - 0x3af208 ]
> ## Flattened Device Tree blob at 4300
>Booting using the fdt blob at 0x4300
>Loading Device Tree to 4fff7000, end 4ae5 ... OK
>
> Starting kernel ...
>
> [0.00] Booting Linux on physical CPU 0x0
> [0.00] Linux version 3.18.0-rc3-lime2-31432-gd1b8ab3 (root@sl3)
> (gcc version 4.9.1 (GCC) ) #2 SMP Sat Nov 15 15:38:53 UTC 2014
> [0.00] CPU: ARMv7 Processor [410fc074] revision 4 (ARMv7),
> cr=10c5387d
> [0.00] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing
> instruction cache
> [0.00] Machine model: Olimex A20-OLinuXino-LIME2
> [0.00] cma: Reserved 16 MiB at 7f00
>
>
>
> --
> 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+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[linux-sunxi] armhf floating-point ABI mismatch causing build error

2014-12-31 Thread B.R. Oake
On 28/12/14 15:51, Jens Thiele wrote:> get an error at the moment (native 
compile on debian/jessie/armhf):
> LD  u-boot
> ld.bfd: error: /usr/lib/gcc/arm-linux-gnueabihf/4.9/libgcc.a(bpabi.o) uses 
> VFP register arguments, u-boot does not
> ...



On 28/12/14 16:15, Chen-Yu Tsai wrote:
> It seems some recent changes in upstream broke building with hard float
> toolchains. Best use soft float.


I also encountered this error when trying to build mainline u-boot on
Debian Jessie armhf.  I got it to build by adding -mfloat-abi=hard to
KBUILD_CFLAGS in the main Makefile, and the resulting u-boot seems to
work fine, but I don't know if there are any downsides to this approach.

Best wishes,
B.R. Oake.

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[linux-sunxi] Re: Kurio 7S and boot linux (Debian...) sdcard... how??

2014-12-31 Thread Piotr Kopeć
I had some problems with the card so I created a small tutorial.
Tutorial Kurio 7S 
P.S. My mistake script.bin standard errors of the android is how you want to 
use 
Debian use my script.bin

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.