Author: ivan_ucherdjiev

rebuild U-Boot problem

[Copy link]

3

threads

31

posts

139

credits

Registered member

Rank: 2

credits
139
 Author| Published in 2015-6-12 05:51:23 | Show all floors
I did it! Thank you very much for the support!

the right one is

"boot_normal=fatload mmc 1 40007800 uImage; bootm 40007800\0" \  

3

threads

31

posts

139

credits

Registered member

Rank: 2

credits
139
 Author| Published in 2015-6-12 05:55:28 | Show all floors
ah i didnt DD didnt worked on the first try

3

threads

31

posts

139

credits

Registered member

Rank: 2

credits
139
 Author| Published in 2015-6-12 06:35:56 | Show all floors
Ahh i cannot understand what is wrong it say

[   31.57][mmc]: MMC Device 1 not found

**Invalid boot device**
Wrong Image Format for bootm command
ERROR: can't get kernel image

3

threads

31

posts

139

credits

Registered member

Rank: 2

credits
139
 Author| Published in 2015-6-12 07:06:39 | Show all floors
Fritz please when you are able tell me what is the right think to be writen for boot_normal

3

threads

31

posts

139

credits

Registered member

Rank: 2

credits
139
 Author| Published in 2015-6-12 15:10:04 | Show all floors
Fritz i did it i found where was my mistake and now it works.
Thank you very much for the support!

3

threads

31

posts

139

credits

Registered member

Rank: 2

credits
139
 Author| Published in 2015-6-12 15:47:32 | Show all floors
Edited by ivan_ucherdjiev at 2015-6-12 15:49

now u-boot is running but USBs do not work do you know why that may happen? should i add somthink more somewhere?

5

threads

354

posts

2731

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
2731
Published in 2015-6-13 03:39:39 | Show all floors
Ok, let's resume (maybe someone else is interesed)
You have not explained how you resolved it.
you had :

"boot_normal=fatload mmc 1 40007800 uImage; bootm 40007800\0" \
and then error:
MMC Device 1 not found

That's normal device count begins at 0
first device = 0
correct boot_normal would be:
"boot_normal=fatload mmc 0:1 40007800 uImage;bootm 40007800\0" \

and then another other problem:
"mmc_root=/dev/mmcblk0p7\0" \

mmc_root on SD is on the second partition
correct mmc_root:
"mmc_root=/dev/mmcblk0p2\0" \

Thats' it
For the usb problem I dont know maybe it depends on your kernel.
Boards:
orangepi plus, olinuxino A20, cubieboard A10, mele A2000 .....

3

threads

31

posts

139

credits

Registered member

Rank: 2

credits
139
 Author| Published in 2015-6-13 04:01:26 | Show all floors
Thank for the replay ! i solve it when i wrote

"boot_normal=fatload mmc 0 40007800 uImage;bootm 40007800\0" \

but with   "mmc_root=/dev/mmcblk0p7\0" \  i didnt change that and it still works.

3

threads

31

posts

139

credits

Registered member

Rank: 2

credits
139
 Author| Published in 2015-6-13 04:24:20 | Show all floors
for the USB i dont build and change the kernel ..... only the u-boot. With your u-boot RAR which  you posted in another thread usbs work but with mine they dont...

Maybe it is somethink in the default sys_config.fex maybe i should change somethink there  to make them work ... i dont know, if i solve it i will write here.

3

threads

31

posts

139

credits

Registered member

Rank: 2

credits
139
 Author| Published in 2015-6-13 20:33:02 | Show all floors
Edited by ivan_ucherdjiev at 2015-6-13 20:35

Hello again,

I fixed the problem with the USBs it was a problem in the default sys_config.fex file. They were not init as they should be. Now everythink work nice and smooth. For usbs the default config was :
;--------------------------------
;---       USB0控制标志
;--------------------------------
[usbc0]
usb_used            = 1
usb_port_type       = 1
usb_detect_type     = 1
usb_id_gpio         =
usb_det_vbus_gpio   =
usb_drv_vbus_gpio   = portL02<1><0><default><0>
usb_host_init_state = 1
usb_restrict_gpio   =
usb_restric_flag    = 0
usb_restric_voltage = 3550000
usb_restric_capacity= 5
usb_regulator_io    = "nocare"
usb_regulator_vol   = 0
usb_not_suspend     = 0

;--------------------------------
;---       USB1控制标志
;--------------------------------
[usbc1]
usb_used            = 1
usb_drv_vbus_gpio   = portL03<1><0><default><0>
usb_restrict_gpio   =
usb_host_init_state = 1
usb_restric_flag    = 0
usb_regulator_io    = "nocare"
usb_regulator_vol   = 0
usb_not_suspend     = 0

;--------------------------------
;---       USB2控制标志
;--------------------------------
[usbc2]
usb_used            = 0
usb_drv_vbus_gpio   =
usb_restrict_gpio   =
usb_host_init_state = 1
usb_restric_flag    = 0
usb_regulator_io    = "nocare"
usb_regulator_vol   = 0
usb_not_suspend     = 0

;--------------------------------
;---       USB3控制标志
;--------------------------------
[usbc3]
usb_used            = 1
usb_drv_vbus_gpio   =
usb_restrict_gpio   =
usb_host_init_state = 0
usb_restric_flag    = 0
usb_regulator_io    = "nocare"
usb_regulator_vol   = 0
usb_not_suspend     = 0

;--------------------------------

The right one, that i used is :

;--------------------------------
;---       USB0控制标志
;--------------------------------
[usbc0]
usb_used            = 1
usb_port_type       = 2
usb_detect_type     = 1
usb_id_gpio         =
usb_det_vbus_gpio   =
usb_drv_vbus_gpio   = portL02<1><0><default><0>
usb_host_init_state = 1
usb_restrict_gpio   =
usb_restric_flag    = 0
usb_restric_voltage = 3550000
usb_restric_capacity= 5
usb_regulator_io    = "nocare"
usb_regulator_vol   = 0
usb_not_suspend     = 0

;--------------------------------
;---       USB1控制标志
;--------------------------------
[usbc1]
usb_used            = 1
usb_drv_vbus_gpio   = portG13<1><0><default><0>
usb_restrict_gpio   =
usb_host_init_state = 1
usb_restric_flag    = 0
usb_regulator_io    = "nocare"
usb_regulator_vol   = 0
usb_not_suspend     = 0

;--------------------------------
;---       USB2控制标志
;--------------------------------
[usbc2]
usb_used            = 0
usb_drv_vbus_gpio   =
usb_restrict_gpio   =
usb_host_init_state = 1
usb_restric_flag    = 0
usb_regulator_io    = "nocare"
usb_regulator_vol   = 0
usb_not_suspend     = 0

;--------------------------------
;---       USB3控制标志
;--------------------------------
[usbc3]
usb_used            = 1
usb_drv_vbus_gpio   =
usb_restrict_gpio   =
usb_host_init_state = 1
usb_restric_flag    = 0
usb_regulator_io    = "nocare"
usb_regulator_vol   = 0
usb_not_suspend     = 0

;--------------------------------


and for the wifi also need changes to be done
default one config is :

;--------------------------------------------------------------------------------
;wifi/bt/fm/gps/nfc modules configuration
;module_num:
;             0- none
;             1- rtl8188eu(wifi)
;             2- rtl8723bs(wifi+bt)
;             3- ap6181(wifi)
;             4- ap6210(wifi+bt)
;             5- ap6330(wifi+bt)
;             6- ap6335(wifi)
;             7- rtl8189etv(wifi)
;module_power0: axp used by module, "axp22_dldo1" - use dldo1, not use keep it empty
;module_power0_vol: power0 voltage, mv;
;chip_en:       enable chip io
;lpo_use_apclk: ""- not use, "losc_out"- a23/33/H3, "ac10032k1"、"ac10032k2"、"ac10032k3"- a80
;--------------------------------------------------------------------------------
[module_para]
module_num          = 1
module_power0       =
module_power0_vol   = 0
module_power1       =
module_power1_vol   =
module_power2       =
module_power2_vol   =
module_power3       =
module_power3_vol   =
chip_en             =
lpo_use_apclk       =

;--------------------------------------------------------------------------------
;wifi configuration
;wifi_sdc_id:    0- SDC0, 1- SDC1, 2- SDC2, 3- SDC3
;wifi_usbc_id:   0- USB0, 1- USB1, 2- USB2
;wifi_usbc_type: 1- EHCI(speed 2.0), 2- OHCI(speed 1.0)
;wl_reg_on:      wifi function enable pin
;wl_host_wake:   wlan device wake-up host pin
;wl_host_wake_invert: whether wl_host_wake use inverter between ap and module
;                     0: not used, 1: used
;--------------------------------------------------------------------------------
[wifi_para]
wifi_used             = 1
wifi_sdc_id           = 1
wifi_usbc_id          = 3
wifi_usbc_type        = 1
wl_reg_on             = portL07<1><default><default><1>
wl_host_wake          =
wl_host_wake_invert   = 0

;-------------------------------------------------------------------------------

the right one is :

;--------------------------------------------------------------------------------
;wifi/bt/fm/gps/nfc modules configuration
;module_num:
;             0- none
;             1- rtl8188eu(wifi)
;             2- rtl8723bs(wifi+bt)
;             3- ap6181(wifi)
;             4- ap6210(wifi+bt)
;             5- ap6330(wifi+bt)
;             6- ap6335(wifi)
;             7- rtl8189etv(wifi)
;module_power0: axp used by module, "axp22_dldo1" - use dldo1, not use keep it empty
;module_power0_vol: power0 voltage, mv;
;chip_en:       enable chip io
;lpo_use_apclk: ""- not use, "losc_out"- a23/33/H3, "ac10032k1"、"ac10032k2"、"ac10032k3"- a80
;--------------------------------------------------------------------------------
[module_para]
module_num          = 7
module_power0       = "vcc-wifi-33"
module_power0_vol   = 0
module_power1       =
module_power1_vol   =
module_power2       =
module_power2_vol   =
module_power3       =
module_power3_vol   =
chip_en             =
lpo_use_apclk       =

;--------------------------------------------------------------------------------
;wifi configuration
;wifi_sdc_id:    0- SDC0, 1- SDC1, 2- SDC2, 3- SDC3
;wifi_usbc_id:   0- USB0, 1- USB1, 2- USB2
;wifi_usbc_type: 1- EHCI(speed 2.0), 2- OHCI(speed 1.0)
;wl_reg_on:      wifi function enable pin
;wl_host_wake:   wlan device wake-up host pin
;wl_host_wake_invert: whether wl_host_wake use inverter between ap and module
;                     0: not used, 1: used
;--------------------------------------------------------------------------------
[wifi_para]
wifi_used             = 1
wifi_sdc_id           = 1
wifi_usbc_id          = 2
wifi_usbc_type        = 1
wl_reg_on             = portL07<1><default><default><0>
wl_host_wake          = portG10<0><default><default><0>
wl_host_wake_invert   = 0
;--------------------------------------------------------------------------------

This configs would work for OPI2 and OPIPLUS.

Thanks for the support fritz
You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list