[U-Boot] [U-boot] Question about the (new) U-Boot Timer API

2014-08-01 Thread TigerLiu
Hi, Wolfgang:

The wiki (http://www.denx.de/wiki/U-Boot/TaskTimerAPI) introduced new
U-Boot Timer API, such as:

time_ms_delta_raw()

time_ms_delta_max()

..

 

Not find in 2014.07 code package.

Were they not adopted by u-boot maintainer?

 

Best wishes,

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [U-boot] the first 0x20 bytes in u-boot.bin

2014-07-31 Thread TigerLiu
Hi, Albert:

I am studying 2014.07 release u-boot package.

I found u-boot.bin's first bytes were not code in start.S .

Taken for compling smdkv310 as an example:

The compiled u-boot.bin's first 0x20 bytes were:

18 F0 9F E5 18 F0 9F E5 18 F0 9F E5 18 F0 9F E5

18 F0 9F E5 18 F0 9F E5 18 F0 9F E5 18 F0 9F E5

..

 

So, Is it equal to ldr pc, [pc,#0x18] ?

 

Best wishes,

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [U-boot] Origen board boot failed with 2014.07 source code

2014-07-30 Thread TigerLiu
Hi, singh:

I have an Origen(Cortex-A9 Dual Core, Exynos 4210) development
board.(InSignal produced) 

I followed below steps to verify the latest u-boot release code:

1. build uboot

make origen_config

make all



then it will origen-spl.bin in spl dir.

2. run dd command to burn raw images into a SD Card.

   dd iflag=dsync oflag=dsync if=./origen-spl.bin of=/dev/sdb bs=512

dd iflag=dsync oflag=dsync if=./u-boot.bin of=/dev/sdb bs=512 seek=65

 

but nothing appeared in a UART terminal.

 

Best wishes,

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [U-boot] question about nand_scan_bbt()

2014-07-09 Thread TigerLiu
Hi, Scott:

I have a question about nand_scan_bbt() function in
drivers/mtd/nand/nand_bbt.c .

 ..

 len = (1  this-bbt_erase_shift); // bbt_erase_shift = 18
(256KB)

 len += (len  this-page_shift) * mtd-oobsize;

 buf = vmalloc(len);

 ..

 

Why does it need to allocate 1 block size + all pages' oob size in this
block .

It seems other functions called in nand_scan_bbt() only needs a small
buf (one page size + its oob size).

 

Best wishes,

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [U-boot] Does u-boot.bin only include a data section?

2014-06-22 Thread TigerLiu
Hi, experts:

I am studying u-boo.bin format(which is got from u-boot, an ELF format
bin).

I run the below command:

Objdump -h -b binary -m arm u-boot.bin

 

Found only a .data section was displayed.

So , does u-boot.bin include only a .data section?

 

Best wishes,

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [U-boot] FIT image question

2014-06-20 Thread TigerLiu
Hi, experts:

I have a question about FIT image.

1. based on doc\uImage.FIT\kernel_fdt.its

   I think the compiled itb binary is aslo a dtb format file.

   So, I tried to use u-boot shell's fdt related cmd to parse it.

   But failed.

   Why could not parse it through fdt cmds?

   

Best wishes,

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [U-boot] FIT image question

2014-06-20 Thread TigerLiu
Hi, Heiko:
Thanks for your quick reply!
Maybe my test itb is bad.
I recreated a test itb, now it could be parsed by fdt cmds.

Thanks a lot!

Best wishes,
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [U-boot] sandbox test script question

2014-06-11 Thread TigerLiu
Hi, Josh:
Thanks a lot!
Follwing these steps, I could load itb to memory:
1. sb bind 0 /lionfs
2. ext4load host 0 10 testkernel.itb

Best wishes,
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [U-boot] sandbox test script question

2014-06-10 Thread TigerLiu
Hi, Simon:
Is there any doc described how to use 'sb load host / sb ls host' etc
cmds?
I tried to run:
sb info

it displayed:
0 Not bound to a backing file
..

Best wishes,
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [U-boot] sandbox test script question

2014-06-09 Thread TigerLiu
Hi, Simon:

I tried to run test/image scripts:

  test/image/test-imagetools.sh - multi-file images

  test/image/test-fit.py- FIT images

 

1.   test-imagetools.sh

need to copy u-boot/tools directory to sandbox dir manually, otherwise
it would fail.

2.   test-fit.py

it failed.

Error msgs:

IOError : [Errno 2] No such file or directory:
'/tmp/tmpfLQZPq/kernel-out.bin'

 

And, run 'ls /tmp/tmpfLQZPq'

It had test-kernel.bin, not kernel-out.bin

 

Best wishes,

 

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [ANNOUNCE] U-Boot driver model repo

2014-06-06 Thread TigerLiu
Hi, Simon:
I git cloned http://git.denx.de/u-boot-dm.git .
And followed these steps to compile it:
   make sandbox_config
   make

but failed:
arch/sandbox/cpu/sdl.c:10:21: error: sdl/sdl.h: No such file or directory

Best wishes,
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] smp_kick_all_cpus() function's role

2014-06-03 Thread TigerLiu
Hi, Marc:
My understanding is that if you're using the Trusted Firmware, then you
have an implementation of PSCI, and that's what you must use to bring
the CPUs into u-boot. U-Boot will be running non-secure anyway, so it
requires the firmware to perform S to NS transition on its behalf.
Do you mean :
Waking up Non-BSP cores through PSCI interface, and then let them switch
to Non-Secure state through smp_kick_all_cpus()?

And another question:
1. how to determine successfully transitioning to Non-Secure?
   Is there any register to indicate current state is Non-Secure state?
   And after transitioning to non-secure state, I tried to access SCR
register,but it caused system hang.

Best wishes,
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH 6/9] ARM: HYP/non-sec: make pen code sectionsdepend on !ARMV7_PSCI

2014-06-03 Thread TigerLiu
Hi, Marc:
PSCI doesn't need any pen-related code, as it interacts directly
with the power controller.

Make these sections depend on CONFIG_ARMV7_PSCI not being set.

Signed-off-by: Marc Zyngier marc.zyng...@arm.com
---
 arch/arm/cpu/armv7/nonsec_virt.S | 2 ++
 arch/arm/cpu/armv7/virt-v7.c | 2 ++
 2 files changed, 4 insertions(+)
..

Was this patch not merged into Uboot-2014.07-RC2 source code?

Best wishes,
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] smp_kick_all_cpus() function's role

2014-06-02 Thread TigerLiu
Hi, Marc:
In short, if you're setting GICD_SGIR[24] to 1, you're sending SGI0 to
all CPUs but yourself. This seems to match the name of the function,
doesn't it?
I described my understanding based on 2014.07-RC2 u-boot source code:
(For ARMv8 cores)
1. smp_kick_all_cpus() will send SGI0 to all other cores except BSP.
   These non-BSP cores handled this SGI0 in gic_wait_for_interrupt(), and then 
switched to EL2/EL1 .
   These code is implemented in lowlevel_init in arch/arm/cpu/armv8/start.S.
  Is my understanding right?
2. if runing with ATF(Arm Trusted Firmware) + Uboot.bin
   ATF has put non-BSP cores to WFI state.
   So, before jumping to u-boot's entrypoint, there is only a BSP .
   So, smp_kick_all_cpus() could wake up these non-BSP cores?

Best wishes,
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] smp_kick_all_cpus() function's role

2014-05-30 Thread TigerLiu
Hi, Marc:
I am studying ARMv8's u-boot code with FVP model.
In do_nonsec_virt_switch() function in bootm.c :
It will call smp_kick_all_cpus() function :
It seems it would set GICD_SGIR[24] = 1, forward the interrupt to all
CPU interfaces except tha tof the processor that requested the
interrupt.

So, who generated the interrupt(which would be forwarded to other
cores)?

Best wishes,
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] Booting armv8 kernel on uboot

2014-05-27 Thread TigerLiu
Hi, fenghua:
Followed your steps, I also downloaded  linux-3.14.4.tar.xz .
And run it with ATF + Uboot.
It could boot into linux kernel, and hangs at mounting root fs.

Thanks a lot!

Best wishes,
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] Booting armv8 kernel on uboot

2014-05-22 Thread TigerLiu
Hi, fenghua:
I always use mkimage converting kernel to uImage and booting it. It
works fine.
Wish this help you.

I followed these steps :
1. git clone git://git.linaro.org/kernel/linaro-aarch64.git
2. compiled it
   % make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- distclean
vexpress_defconfig
% make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- -j4 Image
3. got the Image from arch\arm64\boot dir
4. use mkimage to package Image to uImage
   ./mkimage -n 'linux-3.12' -A arm64 -O linux -T kernel -C none -a
0xC8 -e 0xC8 -d Image uimage

5. run it with FVP model.(free charge licensed ver)
/home/lion/ARMv8/Foundation_v8pkg/models/Linux64_GCC-4.1/Foundation_v8
--cores=2 --no-gicv3 --data=./build/fvp/debug/bl1.bin@0x0
--data=./build/fvp/debug/fip.bin@0x0800
--data=foundation-v8.dtb@0x8200 --data=uimage@0x0008

Then, got the same Synchronous Abort as Bhoj.

So, could you describe your explicit steps to get correct uimage?

Best wishes,
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [U-boot] Does u-boot support being compiled by clang compiler?

2014-05-19 Thread TigerLiu
Hi, experts:

Does u-boot support being compiled by clang compiler?

Clang compiler is provied by LLVM.

 

Best wishes,

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [U-boot] himport_r() function question

2014-05-12 Thread TigerLiu
Hi, experts:

Set_default_env() function will call himport_r() function.

Himport_r() will create hash tables for env variables.

 

But on some very slow software emulator platform, himport_r() run very
slowly!

So , my question is:

Would Himport_r() be omitted in set_default_env() ?

 

Best wishes,

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [U-boot] Is there generic code to detect nand chip's ecc bits?

2014-04-17 Thread TigerLiu
Hi, Scott:

I have a question about nand chip's ecc bits:

Nand chip usually declared its ecc bits for each 512 bytes in its data
sheet.

Such as:

Some nand chips required 4bit ECC for each 512 bytes.

Some nand chips required 2bit ECC for each 512 bytes.

 

So, my question is:

Could ecc bits be got from nand chip's flash id?

Or other generic method to retrieve ECC bits required for every nand
chip?

 

Best wishes,

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [U-boot] 2014.04 release code boot failed on ARMv8 FVP model

2014-04-15 Thread TigerLiu
Hi, Fenghua:

I have tried to boot U-boot 2014.04 formal release code on FVP model.

But failed.

 

And u-boot-2014.04-rc3.tar.bz2 is OK.

 

Best wishes,

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [U-boot] 2014.04 release code boot failed on ARMv8 FVPmodel

2014-04-15 Thread TigerLiu
Hi, Fenghua:
Sorry !
GICv3 caused it failed to boot.
Because I used free license FVP, not support GICv3.
I del #define CONFIG_GICV3 in vexpress_aemv8a.h.
Then it booted ok!

Best wishes,

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] why not enable ICache in vexpress_aemv8a.h

2014-04-01 Thread TigerLiu
Hi, York:
Thanks a lot!
I have noted your recent patch about ARMv8 cache flush.

Best wishes,

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] why not enable ICache in vexpress_aemv8a.h

2014-03-31 Thread TigerLiu
Hi, fenghua:
I found you defined these marcoes in vexpress_aemv8a.h :
#define CONFIG_SYS_DCACHE_OFF
#define CONFIG_SYS_ICACHE_OFF

Most ARMv7 platform will enable Icache to make code run faster.
So, why not turn on Icache on ARMv8 FVP model?
Is there any side-effects?

Best wishes,
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [U-boot] how to compile vexpress_aemv8a with latest u-boot code

2014-03-31 Thread TigerLiu
Hi, experts:

I usually compiled u-boot for ARMv8 FVP model with below command:

export ARCH=aarch64

export
CROSS_COMPILE=/home/tiger/tiger-linux-share/CBP5860/ARMv8/gcc-linaro-aar
ch64/bin/aarch64-linux-gnu-

make vexpress_aemv8a

 

but when I tried to compile it with u-boot-2014.04-rc2.tar.bz2, it
tiped:

Makefile:485: *** System not configured - see README. Stop.

 

Best wishes,

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [U-boot] how to compile vexpress_aemv8a with latest u-bootcode

2014-03-31 Thread TigerLiu
Hi:
Has solved it.
make vexpress_aemv8a

Should replace it with make vexpress_aemv8a_config and make

Best wishes,

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [U-boot] unsigned long long in ARMv8

2014-03-28 Thread TigerLiu
Hi, All:

 how to map unsigned long long  to a long data type if compiling a
64bit u-boot?

I got the answer:

ARMv8 compiler will treat unsigned long long as u64 type.

 

Best wishes,

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] uhs-1 support in imx_esdhc.c file

2014-03-27 Thread TigerLiu
Hi, Haijun:
Freescale engineer had ever added UHS-I support in
drivers/mmc/imx_esdhc.c .
But I could not find imx_eshdc.c file in current latest u-boot package.

So, I have questions about UHS-I code:
1. UHS-I support has been merged into fsl_esdhc.c ?
2. Does freescale support UHS-II in u-boot code?

Best wishes,
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [U-boot] unsigned long long in ARMv8

2014-03-26 Thread TigerLiu
Hi, experts:

in 32bit ARM SOC platform:  

u-boot use unsigned long long as a uint64 data type.

 

So, if with 74bit ARM SOC:

Long type : means a 64bit data type.

 

So how to map unsigned long long  to a long data type if compiling a
64bit u-boot?

 

Best wishes,

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] raw data

2014-03-23 Thread TigerLiu
Hi,
Is there a command to read raw data from a disk partition to memory?
Nand / mmc command is ok.


Best wishes,
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] _POST_WORD_ADDR for ARM

2014-03-18 Thread TigerLiu
Hi,
   How can we define  _POST_WORD_ADDR for ARM.In case enabling post for
arm
on post.h how can i define  _POST_WORD_ADDR. how it is defined in
other
platform.please tell me the logic behind  _POST_WORD_ADDR.

I remember Denk has said : _POST_WORD_ADDR should point to a
non-volatile region.
Such as : 
You could let it point to some scratch registers in your SOC.

Best wishes,
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] Relocation

2014-03-17 Thread TigerLiu
Hi, Denk:
You used the correct phrase: it seemed.  Except that you broke a
number of really important things.  If you do not understand what
rlocation is needed for, then please gop back and read it in the
archives.  This has been discussed many times before.

For example:
Most ARM SOC platform has BL1 code(Boot Stage 1) before U-boot.
So, usually BL1 code could load U-boot.bin to DRAM's dedicated location.
So, U-boot need not be relocated again in this case.

Best wishes,
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] Relocation

2014-03-16 Thread TigerLiu
Hi, Albert:
Relocation will always happen, and there is no provision for avoiding
it.
I have ever tried to del these code in crt0.S :
ldr sp, [r8, #GD_START_ADDR_SP] /* r8 =
gd-start_addr_sp */
bic sp, sp, #7  /* 8-byte alignment for ABI compliance
*/
ldr r8, [r8, #GD_BD]/* r8 = gd-bd */
sub r8, r8, #GD_SIZE/* new GD is below bd */

/// tricky code : insure to return here after running
relocate_code.
adr lr, here
ldr r0, [r8, #GD_RELOC_OFF] /* lr =
gd-start_addr_sp */
add lr, lr, r0
ldr r0, [r8, #GD_RELOCADDR] /* r0 = gd-relocaddr */
/// start.S implement this function.
b   relocate_code

Then no relocation, it seemed OK.

Best wishes,
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [U-boot] question about one env variable size

2014-02-19 Thread TigerLiu
Hi, experts:

I want to know the size limit for a single env variable.

I have reviewed the code:

1. It seems the size limit for a single env variable is 1M bytes, right?

   #defineMAX_ENV_SIZE   (1  20)  /* 1 MiB */

   (in common/cmd_nvedit.c)

 

Best wishes,

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [U-boot] question about one env variable size

2014-02-19 Thread TigerLiu
Hi, Denk:
Thanks a lot!
I got it!
Not exceed CONFIG_SYS_PBSIZE defined in my platform config file is a
good choice!

What exactly was your reason to worry about the maximum size for env
vars?
My colleage wanted to save a variable which contains 8KB data.
He asked me whether it was ok for u-boot code.
So, i asked this question!

Best regards,
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] u-boot - timestamp

2014-02-18 Thread TigerLiu
Hi, Denk:
Thanks a lot!
I have tried it, and it seemed wonderful!
Its mechanism is:
Using host pc's time stamp to tag the kermit's every output msg line,
right?

Best wishes,
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] u-boot - timestamp

2014-02-17 Thread TigerLiu
Hi, Denk:
 [1] ftp://ftp.denx.de/pub/tools/time_log
How to produce the below format's serial terminal log message?
Which marco definition needed to be turn on when compiling u-boot code?

#  6.357 ## Booting image at 0020 ...  
#  6.357Image Name:   Linux-2.4.4  
#  6.367Created:  2004-03-12  19:07:58 UTC  
#  6.367Image Type:   PowerPC Linux Kernel Image (gzip compressed)  
#  6.367Data Size:711745 Bytes = 695.1 kB  
#  6.377Load Address:   
#  6.377Entry Point:    
#  6.687Verifying Checksum ... OK  
#  8.438Uncompressing Kernel Image ... OK  
#  9.238 Linux version 2.4.4 (w...@atlas.denx.de) (gcc version 3.2.2
20030217 (Yellow Dog Linux 3.0 3.2.2-2a_1)) #2 Fri Mar 12 20:07:49 MET
2004  
#  0.000 I2C uCode patch installed  
#  0.010 MPC823 LCD memory at C01CE000  
#  0.010 On node 0 totalpages: 4096  
#  0.011 zone(0): 4096 pages.  

Best regards,
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] how to get u-boot code with arm64: core support

2014-02-12 Thread TigerLiu
Hi, Inder:

aarch64-linux-gnu-gcc: error: unrecognized command line option '-marm'
aarch64-linux-gnu-gcc: error: unrecognized command line option
'-mno-thumb-interwork'
aarch64-linux-gnu-gcc: error: unrecognized command line option
'-mabi=aapcs-linux'
aarch64-linux-gnu-gcc: error: unrecognized command line option
'-mword-relocations'

I didn't run into this issue.

From Google's answer:

Maybe you lost a step in the command line : export ARCH=aarch64

 

I usually put it in batch file:

export ARCH=aarch64

export
CROSS_COMPILE=/home/lion/gcc-linaro-aarch64/bin/aarch64-linux-gnu-

make vexpress_aemv8a

 

 

Best wishes,

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] how to get u-boot code with arm64: core support

2014-02-12 Thread TigerLiu
Hi, Inder:

Could it be a toolchain issue? I used the linaro toochain
gcc-linaro-aarch64-linux-gnu-4.8-2014.01_linux.tar.xz
http://releases.linaro.org/latest/components/toolchain/binaries/gcc-lin
aro-aarch64-linux-gnu-4.8-2014.01_linux.tar.xz  at [1].
Maybe

I use gcc-linaro-aarch64-linux-gnu-4.8-2013.07-1_linux.tar



Best wishes,

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] Secure booting

2014-02-12 Thread TigerLiu
Hi, JYOTI:
Can anybody inform me why u-boot 2013 does not support secure booting?
Basically what are the differences between u-boot2009.08 and u-boot2013
related to secure boot feature? What changes are required to develop
secure
booting in u-boot 2013?

Based on Simon's PPT, U-boot 2013.06 version was the first code package
for verified boot.

Best wishes,
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] how to get u-boot code with arm64: core support

2014-02-11 Thread TigerLiu
Hi, Bhupesh:
I described my steps:
1. Compiled ATF
   Export CROSS_COMPILE=/home/lion/
gcc-linaro-aarch64/bin/aarch64-linux-gnu-
   make DEBUG=1 V=1
   make DEBUG=1 PLAT=fvp all dump

   Note:
   I used linaro released aarch64 compiler, not official gcc 4.7

2. Compiled Uboot
   (1) revised CONFIG_SYS_TEXT_BASE in vexpress_aemv8a.h
   CONFIG_SYS_TEXT_BASE  = 0x0800
   (2) compiled Uboot
   export ARCH=aarch64
   export
CROSS_COMPILE=/home/lion/gcc-linaro-aarch64/bin/aarch64-linux-gnu-
   make vexpress_aemv8a

   Note:
   Please use u-boot.bin(about 207 KB) in below step 3.
3. Run ATF with FVP base model
   ./Foundation_v8  --cores=2 --no-gicv3 --data=./bl1.bin@0x0
--data=./u-boot.bin@0x0800

  Note:
  I use Foundation_v8, a free armv8 foundation  model, not a commercial
licensed model.

Best wishes,
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] how to get u-boot code with arm64: core support

2014-02-11 Thread TigerLiu
Hi, Bhupesh:
Booting trusted firmware boot loader stage 1
Built : 16:09:23, Feb 11 2014
ERROR: Cannot access 'bl2.bin' file (-1).
Failed to load boot loader stage 2 (BL2) firmware.

I did not run into this issue.
It seems semihosting broken!

Maybe this website is useful:
https://github.com/ARM-software/tf-issues/issues/10

Additional info about my running platform:
1. Ubuntu 11.10 x64 version
2. FVP model : downloaded from ARM Ltd website two weeks ago.
Maybe your FVP model is older than mine?!

Best wishes,
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [U-boot] sandbox for aarch64 question

2014-02-10 Thread TigerLiu
Hi, experts:

Sandbox is a platform independent drivers test environment.

And, I could compile it with gcc-4.6 x86_64 version.

So, if a platform independent driver runs ok, then:

Does it also mean this driver is ok for running in an aarch64 state on
an armv8 platform?

 

Best wishes, 

 

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] U-boot for 64bit ARMv8

2014-01-22 Thread TigerLiu
Hi, experts:
I found ARMv8/Exceptions.S only created a 8 items vector table.

But based on ARMv8 Arch Ref Manual, it should create 16 items in a
vector table:
Current Exception level with SP_EL0 : 4 items
Current Exception level with SP_Elx : 4 items
EL immediately lower than target_EL is using AARCH64 : 4 items
EL immediately lower than target_EL is using AARCH32 : 4 items

Are current 8 items enough? Or will patch it in the future?

Best wishes,
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] how to get u-boot code with arm64: core support

2014-01-22 Thread TigerLiu
Hi, bhupesh and drambo:
I think current uboot ARMv8's start.S could handle EL2/EL1 case.
I have tested it on FVP model, let arm trusted firmware boot u-boot.bin.
It seemed ok.
The command I used is:
./Foundation_v8 --cores=4 --no-secure-memory --no-gicv3
--data=./bl1.bin@0x0 --nsdata=./u-boot.bin@0x0800

I changed CONFIG_SYS_TEXT_BASE = 0x0800  (because ARM trusted
firmware will search non-secure firmware entry point at this addr).

Best wishes,
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] tried to boot linux with armv8 fvp model

2014-01-21 Thread TigerLiu
Hi, fenghua:

Has you ever tried to boot a linux kernel with armv8 fvp model?

 

Best wishes,

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] tried to boot linux with armv8 fvp model

2014-01-21 Thread TigerLiu
Hi, Fenghua:

Thanks a lot!

 

Best wishes,

 

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] how to get u-boot code with arm64: core support

2014-01-20 Thread TigerLiu
Hi, Scott:
After changing to u-boot.elf, it could be run in FVP model.
If I run ./Foundation_v8 --image ./u-boot.elf --cores=4
--no-secure-memory, Uboot could be run with FVP model.
But no ARM trusted firmware boot info appeared.
Such as:
Booting trusted firmware boot loader stage 1
..

If I run ./Foundation_v8 --cores=4 --no-secure-memory --no-gicv3
--data=./bl1.bin@0x0 --nsdata=./u-boot.elf@0x8000,
ARM trusted firmware boot info could appear, but failed to load and run
u-boot.elf.

So, if I want to use ARM trusted firmware to boot u-boot.elf, any ideas?

Best wishes,
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] how to get u-boot code with arm64: core support

2014-01-20 Thread TigerLiu
Hi, Bhupesh:
U-boot doesn't have ARM trusted firmware support as of now. U-boot for
ARMv8 starts in EL3,
whereas UEFI starts in EL2 as trusted firmware itself is working in
EL3.

Do you mean: when FVP run, the first instruction would be fetched from
u-boot.elf?

Best wishes,
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] how to get u-boot code with arm64: core support

2014-01-14 Thread TigerLiu
Hi, Fenghua:
 Albert has merged arm64 patch set. I have tested and it works fine
on Foundation Model.

I have downloaded the latest u-boot source code.
And compiled it with linaro released gcc:
export ARCH=aarch64
export
CROSS_COMPILE=/home/lion/ARMv8/gcc-linaro-aarch64/bin/aarch64-linux-gnu-
make vexpress_aemv8a
--

Then copy u-boot.bin to Foundation_v8's directory, and runs:
./Foundation_v8 --cores=4 --no-secure-memory --visualization --gicv3
--data=./bl1.bin@0x0 --data=./u-boot.bin@0x800

But it failed to jump to u-boot.
It seems the Foundation_v8 has hang.

What is wrong with it?

Best wishes,
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] how to get u-boot code with arm64: core support

2014-01-14 Thread TigerLiu
Hi, experts:
I have tried to boot uefi bootloader with FVP model,it is ok!
./Foundation_v8 --cores=4 --no-secure-memory --visualization --gicv3
--data=./bl1.bin@0x0 --data=./uefi.fd@0x800

BL1--BL2--...uefi.fd

But booting uboot.bin, it still failed.

Best wishes,
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] how to get u-boot code with arm64: core support

2014-01-14 Thread TigerLiu
Hi, sharma:
Which ARMv8 foundation model version you are using. I one I have
doesn't support
GiCv3. UEFI supports both GiCv3 and v2 whereas I believe uboot is only
tested for GiCv2.

I download FVP from ARM Ltd website:
http://www.arm.com/products/tools/models/fast-models/foundation-model.ph
p
how to identify this FVP's version number?

I tried to run :
./Foundation_v8 --cores=4 --no-secure-memory --visualization
--data=./bl1.bin@0x0 --data=./u-boot.bin@0x800

Not use  --gicv3  parameter, it still failed to jump to u-boot.bin

Best wishes,
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] how to get u-boot code with arm64: core support

2014-01-14 Thread TigerLiu
Hi, sharma:
 ./Foundation_v8 --cores=4 --no-secure-memory --visualization
--data=./bl1.bin@0x0 --data=./u-boot.bin@0x800

Is the TEXT_BASE right?

Best wishes,
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] how to get u-boot code with arm64: core support

2014-01-14 Thread TigerLiu
Hi,Sharma:
Can you try this command:
./Foundation_v8 --image ./u-boot --cores=4 --no-secure-memory

Error:
terminal_1: Listening for serial connection on port 5000
terminal_2: Listening for serial connection on port 5001
terminal_0: Listening for serial connection on port 5002
terminal_3: Listening for serial connection on port 5003
ERROR: an unexpected exception error has occurred inside the model
terminate called after throwing an instance of 'ObjectLoaderError'
  what():  ./u-boot.bin: error while loading 'AXYS 'in'-file' file:
fgets: Success
./run.sh: line 3: 25702 Aborted ./Foundation_v8 --image
./u-boot.bin --cores=4 --no-secure-memory

So, maybe current FVP's version is newer!

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] how to get u-boot code with arm64: core support

2014-01-14 Thread TigerLiu
Hi, sharma:
Not the u-boot.bin, only u-boot:
./Foundation_v8 --image ./u-boot --cores=4 --no-secure-memory

FVP model print:
Simulation is started

Then not run further.

Based on arm open source firmware doc, should use Foundation_v8 as below
format:
./Foundation_v8   \
--cores=4 \
--no-secure-memory\
--visualization   \
--gicv3   \
--data=path to bl1.bin@0x0\
--data=path to UEFI binary@0x800  \

After compiled u-boot source code, there are 3 u-boot bin files:
u-boot : 1.4MB
u-boot.bin : 205KB
u-boot.elf : 270KB

So, we should use u-boot? Not u-boot.bin?

Best wishes,
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] how to get u-boot code with arm64: core support

2014-01-14 Thread TigerLiu
Hi, Scott:
You need to use u-boot.elf, not the unrelocated u-boot.
Thanks a lot!
After changing to u-boot.elf, it could be run in FVP model.

Best wishes,
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] how to get u-boot code with arm64: core support

2014-01-12 Thread TigerLiu
Hi, Jagan and other experts:
Thanks a lot!
I will try it at ARM Ltd released Foundation Model.

Best wishes,
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] how to get u-boot code with arm64: core support

2014-01-09 Thread TigerLiu
Hi, fenghua:
How to get u-boot code with arch/arm/cpu/armv8 directory?
I used git://www.denx.de/git/u-boot.git  to get latest code, but not
find armv8 dir.

Best wishes,
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH v16 00/10] arm64 patch

2014-01-09 Thread TigerLiu
Hi, Albtert:
How to download u-boot source code with arm64 patch code.
Such as :
Include  arch/arm/cpu/armv8 directory.

I used git clone git://www.denx.de/git/u-boot.git to download source
code.
But not find arm64 patch code in the downloaded source code.

Best wishes,
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [U-boot] Uboot's plan for ARMv8

2014-01-09 Thread TigerLiu
Hi, experts:

Does U-boot have any plan to support ARMv8 SOC?

Nvidia has decleared 64bit SOC plan.

So, i think bootloader for ARMv8 SOC is urgent now.

 

Although ARM Ltd recommended UEFI firmware as ARMv8's bootloader.

But not a requirement.

On Consumer Electronics market, Uboot has huge influence.

So, Does U-boot have any plan to support ARMv8 SOC?

 

 

Best wishes,

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [U-boot] Uboot's plan for ARMv8

2014-01-09 Thread TigerLiu
Hi, sharma:
Thanks for your answer!
How to get u-boot source code which includes arch/arm/cpu/armv8 dir?
I used git clone git://www.denx.de/git/u-boot.git to download source
code.
But not find arm64 patch code in the downloaded source code.

Best wishes,
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] sandbox question

2014-01-08 Thread TigerLiu
Hi, Albrahm:
Thanks a lot!

Best wishes,
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] sandbox question

2014-01-07 Thread TigerLiu
Hi, Simon:

Thanks for your reply!

Well you could, but what benefit would that provide? It would not use
any code from arch/arm if that is what you are thinking. Sandbox is its
own 'architecture'?

 

For example:

1. i want to test fs/ext4 driver.

They are architecture independent code.

I means:

(1) the obj files produced by arm gcc compiler are different with obj
files produced by x86 gcc compiler.

 Maybe arm gcc compiler would introduce some arm architecture
related optimizations for fs/ext4 drivers.

 Maybe x86 gcc compiler would introduce some x86 architecture
related optimizations for fs/ext4 drivers.

 So, if sandbox's fs/ext4 drivers' test passed on an x86
platform,but these architecture related optimizations would cause 

some potential bugs on ARM platform.

 

Is it a problem?

 

Best wishes,

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] sandbox question

2013-12-30 Thread TigerLiu
Hi, Simon:
Sorry for some typo.
I re-wrote this mail:
---
I have a question about compiling uboot sandbox branch:
1. It seems sandbox branch could be compiled by gcc compiler on a x86
platform.
   Not need to set cross compiler tool chains.
   And after finished compiling, it could be run on a x86 environment.
   So, my question is:
   The obj file for a same .C file by arm cross compiler tool chain is
different with the obj file produced by a x86 gcc tool.
   (On my x86 platform, defaut gcc is a x86 version)

   So, for more precise test for non-platform code:
User should compile sandbox branch with an arm cross compiler tool
chain.
And should run it on an arm linux environment?

Best wishes,
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH 3/9] ARM: HYP/non-sec switch in bootm.c

2013-12-29 Thread TigerLiu
Hi, Dall:
I have a few questions about switching cpu's state from secure to
non-sec in uboot.
1. I found do_nonsec_virt_switch() function had been integrated in
uboot_2014_01_RC2.
This function would switch cpu from secure state to non-sec, even
into hyp-state.
So, my question is:
If a SOC is based on ARMv7 architecture:
Virt-v7.c / nonsec_virt.S are common files to all kinds of SOCs
which are produced by different Vendors?

2. Does uboot need to switch its state to non-sec?
Based on ARM company released doc:
U-boot should run at non-sec state, so no need to swith to non-sec
again.

Best wishes,
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH 3/9] ARM: HYP/non-sec switch in bootm.c

2013-12-29 Thread TigerLiu
Hi, Dall:
Thanks for your quick response!
It depends on the board.  Which ARM doc are you referring to?
ARM Security Technology : Building a Secure System using TrustZone
Technology.
(PRD29-GENC-009492C)
Figure 5-2 in Chapter 5.2.1 Boot Sequence.
Based on my understanding, U-boot is classfied as normal world boot
loader.
Maybe my understanding is wrong! :)

In general, there are three options for how u-boot is booted:
1. In secure mode
2. In non-secure hyp mode
3. in non-secure svc mode

for (1) you can just switch to non-secure hyp.  for (2) you don't have
to do anything.  for (3) you're screwed, unless there's a backdoor
call to enter Hyp mode (typically found on TI hardware).
For (1), i didn't get it totally:
On a platform with a CA7 supporting TZ tech, but this SOC not support
VT, 
usually cpu is powered on in secure mode.
So, i could only switch it to non-sec state?
If this CA7 also supports VT, so i could select 2 goals:
Switch to non-sec state, or swith to non-sec hyp mode?

I think non-sec state is not identical with non-sec hyp mode.

Best wishes,


-Christoffer
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH 3/9] ARM: HYP/non-sec switch in bootm.c

2013-12-29 Thread TigerLiu
Hi, Dall:
Thanks a lot!
non-secure *state* includes several non-secure CPU modes (usr, svc,
und, abt, irq, fiq, hyp).  You can choose to switch to either of them
as you want, but if you want to boot Linux you should choose Hyp mode
so KVM will work, unless you are writing your own hypervisor or use
Hyp for something else, in which case you can fall back to booting
Linux in svc mode.
Yes, you are right, i got it!

Best wishes,
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] sandbox question

2013-12-29 Thread TigerLiu
Hi, Simon:
Sandbox concept is a very good idea to test uboot's non-platform part
code.

I have a question about compiling uboot sandbox branch:
1. It seems sandbox branch could be compiled by gcc compiler on a x86
platform.
   Not need to set cross compiler tool chains.
   And after finished compiling, it could be run on a x86 environment.
   So, my question is:
   Arm cross compiler tool chains could produce different obj file for a
same .C file.
   The obj file for a same .C file by arm cross compiler tool chain is
not different with the obj file produced by a x86 gcc tool.
   (On my x86 platform, defaut gcc is a x86 version)

   So, for more precise test for non-platform code:
User should compile sandbox branch with an arm cross compiler tool
chain.
And should run it on an arm linux environment?

Best wishes,
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [U-boot] the relationship between CONFIG_LCD / CONFIG_VIDEO / CONFIG_CFB_CONSOLE

2013-12-16 Thread TigerLiu
Hi, Simon:
Some drivers uses CONFIG_VIDEO and some use CONFIG_LCD. We tried to
unify the API calls a little a year or so ago. They serve a very
similar purpose. I hope that with driver model they will become the
same.
Thanks a lot!

Best wishes,
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [U-boot] the relationship between CONFIG_LCD / CONFIG_VIDEO / CONFIG_CFB_CONSOLE

2013-12-10 Thread TigerLiu
Hi, experts:

I am confused by CONFIG_LCD / CONFIG_VIDEO / CONFIG_CFB_CONSOLE.

Some board config files defined : CONFIG_VIDEO and CONFIG_CFB_CONSOLE.

But not define CONFIG_LCD.

 

It seemed CONFIG_LCD was out of date?

 

Best wishes,

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [U-boot] does u-boot support exynos 5420?

2013-12-03 Thread TigerLiu
Hi, chander:

Does the mainline u-boot code support exynos 5420 Arndale Octa Board?

Exynos 5420 supports big.little tech.

 

Best wishes,

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH 00/10] Introduce Samsung misc file and LCD menu.

2013-12-03 Thread TigerLiu
Hi, Marczak:
Could i test these feature on S5PV310 platform(Origen Board)?
Such as : console support on LCD

Best wishes,
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [U-boot] not support parsing Android's boot.img format ?

2013-11-11 Thread TigerLiu
Hi, Albert:
Sorry for making trouble for you!
I just wants to make sure uboot not support this feature now.

Maybe i will submit a patch in the future.

Best wishes,
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [U-boot] uboot support ext4 format command?

2013-11-10 Thread TigerLiu
Hi, Albert:
I don't think it does, but you can find out by looking at the
documentation and code.

Besides, I don't think being able to format a filesystem from
the bootloader is really needed; this task is best performed in a
full-fledged operating system IMO. 

I aslo don't think uboot need a ext4 format tool.
From the code implementation, it also didn't implement format function.

Best wishes,
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [U-boot] not support parsing Android's boot.img format ?

2013-11-10 Thread TigerLiu
Hi, experts:

It seems current uboot does not support parse boot.img which saved in
NAND chip.

Boot.img contains : kernel.img and ramdisk.img

It contains a header struct:

struct boot_img_hdr

{

unsigned char magic[BOOT_MAGIC_SIZE];

 

unsigned kernel_size;  /* size in bytes */

unsigned kernel_addr;  /* physical load addr */

 

unsigned ramdisk_size; /* size in bytes */

unsigned ramdisk_addr; /* physical load addr */

 

unsigned second_size;  /* size in bytes */

unsigned second_addr;  /* physical load addr */

 

unsigned tags_addr;/* physical addr for kernel tags */

unsigned page_size;/* flash page size we assume */

unsigned unused[2];/* future expansion: should be 0 */

 

unsigned char name[BOOT_NAME_SIZE]; /* asciiz product name */



unsigned char cmdline[BOOT_ARGS_SIZE];

 

unsigned id[8]; /* timestamp / checksum / sha1 / etc */

};

 

Nand boot cmd usually should retrieve kernel.img from boot.img.

 

Best wishes,

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [U-boot] uboot support ext4 format command?

2013-11-08 Thread TigerLiu
Hi, shankar:

It seems uboot currently supports ext4load / ext4ls / ext4write command.

Does it support ext4format command?

(such as : format NAND as ext4 filesystem?)

 

Best wishes,

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [U-boot] raise() function question

2013-11-07 Thread TigerLiu
Hi, experts:

There is a raise() function implementation in Arch/arm/lib/eabi_compat.c
.

So, it is usually callbed by div0 from the c compiler libgcc ?

 

If uboot output raise: Signal ..., is it caused by division-by-zero ?

 

Best wishes,

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [U-boot] CONFIG_LOGBUFFER and _POST_WORD_ADDR

2013-11-06 Thread TigerLiu
Hi, experts:

I tried to turn on log buffer function by defined CONFIG_LOGBUFFER.

When compiled source code, it tips:

Should define _POST_WORD_ADDR .

 

But i think:

_POST_WORD_ADDR is not related with CONFIG_LOGBUFFER.

_POST_WORD_ADDR is justed related with CONFIG_POST

 

So, should revise include/post.h file.

 

Best wishes,

 

 

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [CBP5850-EVB] relocate_code question

2013-11-01 Thread TigerLiu
Hi, experts:

Currently, uboot will relcoate itself to dram's high end in crt0.S .

So, i don't want to relocate uboot.bin , how to do it?

Just del b relocate_code in crt0.S ?

What else needed to do ?

 

Best wishes,

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [U-boot] DFU and fastboot question

2013-10-29 Thread TigerLiu
Hi, experts:

In U-boot mini summit 2013, not talk about android fastboot protocol
support in U-boot mainline code?

In the ppt which introduced DFU, it said:

Google Chromebook use DFU tool?

I am curious:

Why Google not continue to use fastboot tool in Chromebook?

 

Best wishes,

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [U-boot] getstr() function?

2013-10-28 Thread TigerLiu
Hi, experts:

Uboot has provided a getc() function.

So how about getstr() function? 

It seems: not provide getstr() ?

Best wishes,

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH v5 2/8] ARM: add secure monitor handler to switchto non-secure state

2013-10-13 Thread TigerLiu
Hi, Albert:
Thanks !
I used cmd git clone git://git.denx.de/u-boot.git  to get the master
source code.

Best wishes,
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH v5 2/8] ARM: add secure monitor handler to switchto non-secure state

2013-10-13 Thread TigerLiu
Hi, Albert:
My apologies: I though you had meant how to get the submission to go
into mainline, while you actually meant how to get accepted
submissions locally.

Let me just add that if you want to (ir)regularly find out which code
has been accepted into mainline, there is no need to re-clone the
whole repository each time. Clone it once, then 'git fetch origin'
whenever you want to re-sync, that will only transfer what's new.
 Thanks a lot!

Best wishes,
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH v5 2/8] ARM: add secure monitor handler to switchto non-secure state

2013-10-12 Thread TigerLiu
Hi, experts:
I found Linaro engineers had pushed some secure monitor related code.
But not find these code in 2013.10.rc4 .
So, how to get these latest code?

Best wishes,
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] Not able to get the prints in the do_irq handler

2013-09-24 Thread TigerLiu
Hi, balaji:
I am facing the typical problem relating to prints in the do_irq
handler of
versatile based u-boot. I dont know what is the problem. Though i am
getting the prints normally in super visor context but not able to get
the
prints in the interrupt context. Please can you tell me if it is
possible.

Maybe i met the same problems as you met.
When i turned on irq, added print in do_irq() handler, but no output.
Traced by JTAG tool, found do_irq() had been run, and printf() was also
run, but no output.

My platform had 512MB DRAM, so i changed to 256MB to report to Uboot
code.
Let Uboot know only 256MB DRAM exist.
And the output is normal.
Not have time to find the root cause.

My U-boot codebase is: 2013.04 official release version.

Best wishes,
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [U-boot] OOB-Layout question in NAND Flash chip

2013-09-23 Thread TigerLiu
Hi, Scott:
Thanks for your answer!
It's supposed to be, though it's defined by individual drivers and
there
may be some where the layout has been (unfortunately) changed over time
-- such as if a vendor kernel/U-Boot did it differently from upstream.
Is there a specific NAND driver you're referring to?

Not yet!
Just be curious! :)

Best wishes,

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [U-boot]question: why write bbt and search bbt use different ops mode in nand_bbt.c in U-boot 2013.04?

2013-09-23 Thread TigerLiu
Hi , Scott:

First, My uboot version is 2013.04.

 

In the function scan_write_bbt(), U-boot uses MTD_OOB_PLACE to write BBT
data and BBT pattern. See  below

 

static int scan_write_bbt(struct mtd_info *mtd, loff_t offs, size_t len,

  uint8_t *buf, uint8_t *oob)

{

 struct mtd_oob_ops ops;

 

  ops.mode = MTD_OOB_PLACE;

 ops.ooboffs = 0;

 ops.ooblen = mtd-oobsize;

 ops.datbuf = buf;

 ops.oobbuf = oob;

 ops.len = len;

 

 return mtd-write_oob(mtd, offs, ops);

}

 

while in funtion search_bbt() (actually in function
scan_read_raw_oob()), U-boot uses MTD_OOB_RAW to read BBT data and BBT
pattern. See  below.

 

static int scan_read_raw_oob(struct mtd_info *mtd, uint8_t *buf, loff_t
offs,

size_t len)

{

 struct mtd_oob_ops ops;

 int res;

 

  ops.mode = MTD_OOB_RAW;

 ops.ooboffs = 0;

 ops.ooblen = mtd-oobsize;

 

 

 while (len  0) {

   if (len = mtd-writesize) {

ops.oobbuf = buf + len;

ops.datbuf = buf;

ops.len = len;

return mtd-read_oob(mtd, offs, ops);

   } else {

ops.oobbuf = buf + mtd-writesize;

ops.datbuf = buf;

ops.len = mtd-writesize;

res = mtd-read_oob(mtd, offs, ops);

 

if (res)

 return res;

   }

 

   buf += mtd-oobsize + mtd-writesize;

   len -= mtd-writesize;

 }

 return 0;

}

 

It's confused that search BBT and write BBT uses different mtd ops mode.
And also data will not be valid if U-boot uses mtd ops MTD_OOB_RAW
during reading and no software ECC is implemented. 

I also noticed that in U-boot2013.07 both search BBT and write BBT uses
mtd ops MTD_OPS_PLACE_OOB.

 

Best wishes,

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [U-boot] OOB-Layout question in NAND Flash chip

2013-09-22 Thread TigerLiu
Hi, experts:

Is the u-boot's NAND OOB-layout same with linux kernel's nand drivers?

 

Best wishes,

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [U-boot] OOB-Layout question in NAND Flash chip

2013-09-21 Thread TigerLiu
Hi, experts:

Is the u-boot's NAND OOB-layout same with linux kernel's nand drivers?

 

Best wishes,

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH] arm: prevent using movt/movw address loads

2013-09-17 Thread TigerLiu
Hi, experts:
The movt/movw instruction can be used to hardcode an
memory location in the instruction itself. The linker
starts complaining about this if the compiler decides
to do so: relocation R_ARM_MOVW_ABS_NC against `a local
symbol' can not be used and it is not support by U-boot
as well. Prevent their use by requiring word relocations.
This allows u-boot to be build at other optimalization
levels then -Os.
Would this patch be included in 2013.10 release verion?
So u-boot could be built at other optimalization levels than -Os.

I tested 2013.10-rc2, but still failed to build by -O0 / -O1 etc.

Best wishes,
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH] arm: prevent using movt/movw address loads

2013-09-17 Thread TigerLiu
Hi, Denk:
May I ask why you want to use other optimization levels?  Do you just
hope that your code may run faster, or do you have actual proof (i. e.
measurements) that this is the case?  It would be interesting if you
could share any such measured results.

Not for running faster.
I just think:
If turn off compiler optimization, some bugs would be analysed easily.

Best wishes,
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH] arm: prevent using movt/movw address loads

2013-09-17 Thread TigerLiu
Hi, experts:
-# check that only R_ARM_RELATIVE relocations are generated
 ifneq ($(CONFIG_SPL_BUILD),y)
-ALL-y += checkarmreloc
+# Check that only R_ARM_RELATIVE relocations are generated.
+ALL-y += checkarmreloc
+# The movt / movw can hardcode 16 bit parts of the addresses in the
+# instruction. Relocation is not supported for that case, so disable
+# such usage by requiring word relocations.
+PLATFORM_CPPFLAGS += $(call cc-option, -mword-relocations)
 endif
Jeroen's patch is very simple.
So, is there any side-effect?
If not, why not add it into 2013.10 release version? :)

Best wishes,
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [U-boot] Some questions about BootStage functions

2013-09-17 Thread TigerLiu
Hi, Simon:
Got it!
Thanks!
My codebase is 2013.04 release version.
It seemed board_f.c / board_r.c had been moved to common directory.
Arch/Arm/Lib/Board.c  would be compiled conditionally.

Best wishes,
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [U-boot] Some questions about BootStage functions

2013-09-16 Thread TigerLiu
Hi, experts:

I have some questions about bootstage functions.(common/bootstage.c)

1. mark_bootsage record relocation question

board_init_f() will call mark_bootstage() function to record the elapsed
time when system 

From power on to board_init_f point.

But after running board_init_f()  function, uboot will relocate u-boot
code base.

So, the boot stage record board_init_f would be abnormal ? !

Because i did not find any code to do relocation operation for boot
stage records.

2. how to understand start_us fiedld in bootstage_record struct ?

bootstage_start() function will init bootstage_record-start_us.

But not find which file will call bootstage_start() .

 

Best wishes,

 

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [U-boot] -mno-unaligned-access question

2013-09-12 Thread TigerLiu
Hi, experts:

I have a question about compiler option -mno-unaligned-access.

Why not open -mno-unaligned-access compiler option globally by default
when compiling u-boot?

 

It seems if one driver needs to open it, should set it in Makefile
individually:

$(obj) tst/tst.o: CFLAGS += $(PLATFORM_NO_UNALIGNED)

 

Best wishes,

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [U-boot] IRQ_STACK_START alignment question

2013-09-04 Thread TigerLiu
Hi, experts:

I have a question about IRQ statck pointer alignment.

In arch/arm/lib/interrupts.c :

In Interrupt_init(void) function:

 IRQ_STACK_START = gd-irq_sp - 4;

 IRQ_STACK_START_IN = gd-irq_sp + 8;

 FIQ_STACK_START = IRQ_STACK_START - CONFIG_STACKSIZE_IRQ;

 

It seems not do alignment operation for IRQ_STACK_START /
FIQ_STACK_START .

 

Best wishes,

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [U-boot] FIT Image format question

2013-08-28 Thread TigerLiu
Hi, experts:

I have a question about FIT image format.

1. Did U-boot maintainers propose FIT format firstly?

   Or, U-boot just adopted FIT concept from other source.

It seems linux kernel maintainers also adopted FIT concept.

 

Best wishes,

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [U-boot] zImage_dtb status

2013-08-27 Thread TigerLiu
Hi, Rini:
Yes, but appended dtb is something (some) kernel developers suggest not
relying on.  But you don't need to append, for uImage or zImage, just
pass ${loadaddr} - ${fdt_addr}
Got it!
Thanks a lot!

Best wishes,
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [U-boot] legacy multi-component image format

2013-08-26 Thread TigerLiu
Hi, experts:

I am studying bootm procedure.

In common/image.c, boot_get_fdt() function will parse IH_TYPE_MULTI
format image.

But i could not find any doc describing legacy multi-component image
format!

 

Could anybody provide me a doc?

Thanks a lot!

 

Best wishes,

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [U-boot] zImage_dtb status

2013-08-26 Thread TigerLiu
Hi, experts:

Currently, linux kernel could compile zImage with appending dtb binary.

 

Uboot has supported bootz command.

So, could bootz be used to boot zImage_dtb image?

Has anybody test succefully?

 

Best wishes,

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


  1   2   >