Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ext4 not supported #9

Closed
garycramblitt opened this issue Jun 6, 2012 · 1 comment
Closed

ext4 not supported #9

garycramblitt opened this issue Jun 6, 2012 · 1 comment

Comments

@garycramblitt
Copy link

ext2 works. Haven't tried ext3. Here's console with ext4:

U-Boot 2012.04.01-gef96cd0 (Jun 05 2012 - 19:51:27) Allwinner Technology 

CPU:   SUNXI Family
Board: A10-EVB
DRAM:  512 MiB
MMC:   SUNXI SD/MMC: 0
*** Warning - bad CRC, using default environment                                                                                                                            

In:    serial                                                                                                                                                               
Out:   serial                                                                                                                                                               
Err:   serial                                                                                                                                                               
Hit any key to stop autoboot:  0                                                                                                                                            
sun4i#printenv                                                                                                                                                              
baudrate=115200                                                                                                                                                             
boot.scr=if fatload mmc 0 0x44000000 boot.scr || ext2load mmc 0 0x44000000 boot.scr || ext2load mmc 0 0x44000000 boot/boot.scr; then source 0x44000000; fi; true            
boot_mmc=fatload mmc 0 0x43000000 script.bin; fatload mmc 0 0x48000000 ${kernel}; bootm 0x48000000                                                                          
bootcmd=run boot.scr setargs boot_mmc                                                                                                                                       
bootdelay=3                                                                                                                                                                 
console=ttyS0,115200                                                                                                                                                        
kernel=uImage                                                                                                                                                               
loglevel=8                                                                                                                                                                  
panicarg=panic=10                                                                                                                                                           
root=/dev/mmcblk0p2                                                                                                                                                         
setargs=setenv bootargs console=${console} root=${root} loglevel=${loglevel} ${panicarg} ${extraargs}                                                                       
stderr=serial                                                                                                                                                               
stdin=serial                                                                                                                                                                
stdout=serial                                                                                                                                                               

Environment size: 582/131068 bytes                                                                                                                                          
sun4i#mmc rescan                                                                                                                                                            
sun4i#mmc list                                                                                                                                                              
SUNXI SD/MMC: 0                                                                                                                                                             
sun4i#mmc part                                                                                                                                                              

Partition Map for MMC device 0  --   Partition Type: DOS                                                                                                                    

Partition     Start Sector     Num Sectors     Type                                                                                                                         
    1                 2048         7714816      83                                                                                                                          
sun4i#ext2load mmc 0 0x44000000 boot.scr                                                                                                                                    
Loading file "boot.scr" from mmc device 0:1 (xxa1)                                                                                                                          
** File not found boot.scr                                                                                                                                                  
sun4i#ext2ls mmc 0 /                                                                                                                                                        
< ? >          0 ra-nld, dict-freedict-hin-eng, dict-freedict-
@hno
Copy link
Member

hno commented Oct 15, 2012

ext4 is now supported in u-boot since upstream 2012.10 release, and also available in 2012.10-sunxi release.

@hno hno closed this as completed Oct 15, 2012
amery pushed a commit that referenced this issue Aug 26, 2018
Compiling U-Boot with ubsan/asan libraries and running it in sandbox
may lead to below backtrace:

 => avb init 0
 => avb verify
 ## Android Verified Boot 2.0 version 1.1.0
read_is_device_unlocked not supported yet
common/avb_verify.c:407:31: runtime error: division by zero
AddressSanitizer:DEADLYSIGNAL
Reviewed-by: Igor Opaniuk <igor.opaniuk@linaro.org>

=================================================================
==9388==ERROR: AddressSanitizer: FPE on unknown address 0x0000004b467f \
    (pc 0x0000004b467f bp 0x000000000000 sp 0x7ffd899fe150 T0)
    #0 0x4b467e in mmc_byte_io common/avb_verify.c:407
    #1 0x4b4c47 in mmc_byte_io common/avb_verify.c:532
    #2 0x4b4c47 in read_from_partition common/avb_verify.c:533
    #3 0x69dc0d in load_and_verify_vbmeta lib/libavb/avb_slot_verify.c:560
    #4 0x6a1ee6 in avb_slot_verify lib/libavb/avb_slot_verify.c:1139
    #5 0x45dabd in do_avb_verify_part cmd/avb.c:245
    #6 0x4af77c in cmd_call common/command.c:499
    #7 0x4af77c in cmd_process common/command.c:538
    #8 0x46bafc in run_pipe_real common/cli_hush.c:1677
    #9 0x46bafc in run_list_real common/cli_hush.c:1875
    #10 0x46c780 in run_list common/cli_hush.c:2024
    #11 0x46c780 in parse_stream_outer common/cli_hush.c:3216
    #12 0x46d34b in parse_file_outer common/cli_hush.c:3299
    #13 0x4ad609 in cli_loop common/cli.c:217
    #14 0x4625ae in main_loop common/main.c:65
    #15 0x46f2d1 in run_main_loop common/board_r.c:648
    #16 0x640253 in initcall_run_list lib/initcall.c:30
    #17 0x46f9d0 in board_init_r common/board_r.c:879
    #18 0x40539b in main arch/sandbox/cpu/start.c:321
    #19 0x7fa94925f82f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2082f)
    #20 0x408908 in _start (/srv/R/u-boot-master/u-boot+0x408908)

AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: FPE common/avb_verify.c:407 in mmc_byte_io
==9388==ABORTING

Signed-off-by: Eugeniu Rosca <erosca@de.adit-jv.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants