c-sky / forum

C-SKY Linux 论坛,更多资料请访问 c-sky.github.io
https://c-sky.github.io
32 stars 4 forks source link

Reboot or boot to kernel will fail many times #5

Open Sl0v3C opened 7 years ago

Sl0v3C commented 7 years ago

Many times when reboot the device or boot the device, it will show may be no file during checking the USB storage device. Then it will hung, it should reboot many times and then it can boot to kernel. BTW, the /dev/root size is too small, I modified the Block size to 480M, but when I copy something into the /home/user I created, it sitll shows no size for the device.

Sl0v3C commented 7 years ago
X��RUNts_port=2 not support, please input 1.
Partition Version :  102
Partition Count   :  7
Write Protect     :  TRUE
CRC32 Enable      :  TRUE
Table CRC32       :  646B2E8D
==============================================================================================
ID NAME    FS      CRC32     START    TOTAL_SIZE   MAIN_SIZE  USED_SIZE      Use%  RES_SIZE
==============================================================================================
0  BOOT    RAW     0FC882F2  00000000     128 KB     128 KB   75332  B      57%       0 MB
1  TABLE   RAW               00020000     512  B     512  B     512  B     100%       0 MB
2  LOGO    RAW     4CEDB02C  00020200   65024  B   65024  B   29801  B      45%       0 MB
3  KERNEL  RAW     C2246841  00030000    2176 KB    2176 KB    2168 KB      99%       0 MB
4  ROOT    CRAMFS  4046AEB9  00250000     512 KB     512 KB       8 KB       1%       0 MB
5  THEME   CRAMFS  00BCA597  002d0000     832 KB     832 KB     792 KB      95%       0 MB
6  DATA    MINIFS  FF000000  003a0000     384 KB     384 KB       1  B       0%       0 MB
----------------------------------------------------------------------------------------------

GxLoader v1.9 20140509 

cpu family      : CSKY
chip model      : gx6605s
board type      : 6605s
memory size     : 64 MB
Flash type      : w25q32
Flash size      : 4 MB
error: can't support 60HZ with PAL.
warning: board-init not call function enable_dac, will open cvbs & ypbpr default.
Hit any key to stop autoboot: 1 

USB0:   USB EHCI 1.00
scanning bus 0 for devices... EHCI timed out on TD - token=x
unable to get device descriptor (error=-1)
1 USB Device(s) found
boot_from_usb failed, may be file is not exist or no usb storage
romfs_load file ecos.bin.gz.
error loading file ecos.bin.gz!
romfs_load file ecos.bin.lzma.

Decompress kernel ...ok
The total boot time is: 14 s (14034 ms)
cmdline str: mem.
mem_info bank[0]start:90000000, size:1800000.
mem_info bank[1]start:91800000, size:2800000.
The whole mem size: 4000000.
wdt_init, 6605.
-----------[bsp_gpio_mod_init] ret = 0----------
jedec_id=ef4016, ext_id=0
USB HCD: device gx-ehci, build at  09:53:46 Mar 31 2017 
ehci: 0x9071370c
ehci->hcs_params=0x2112, num: 2
hcs_params=0x2112
flag=0x1.
hub1=0x1801
hub2=0x1000
ehci base=0xa0900000
operational base= 0xa0900010
gx-ehci gx-ehci.0: gx EHCI
gx-ehci gx-ehci.0: new USB bus registered, assigned bus number 1
ehci_mem_init():ehci->async->qh_dma=0x1071fc40
ehci_mem_init():sizeof qtd: 96.
ehci_mem_init():sizeof qh: 128.
gx-ehci gx-ehci.0: supports USB remote wakeup
gx-ehci gx-ehci.0: irq 59, io mem 0xa0900000904b8454
usb usb1: default language 0x0409
usb usb1: new device strings: Mfr=3, Product=2, SerialNumber=1
usb usb1: usb_probe_device
usb usb1: configuration #1 chosen from 1 choice
usb usb1: adding 1-:1.0 (config #1, interface 0)
hub 1-:1.0: usb_probe_interface
hub 1-:1.0: usb_probe_interface - got id
hub 1-:1.0: USB hub found
hub 1-:1.0: 2 ports detected
hub 1-:1.0: standalone hub
hub 1-:1.0: individual port power switching
hub 1-:1.0: individual port over-current protection
hub 1-:1.0: Single TT
hub 1-:1.0: TT requires at most 8 FS bit times (666 ns)
hub 1-:1.0: power on to power good time: 20ms
hub 1-:1.0: local power source is good
hub 1-:1.0: enabling power on all ports
USB HCD: device gx-ohci, build at  09:53:47 Mar 31 2017 

--------ohci base= 0xa0a00000
<7>: starting gx OHCI USB Controller no sem_wait.
<7>: Clock to USB host has been enabled 
gx-ohci gx-ohci.0: gx OHCI
gx-ohci gx-ohci.0: new USB bus registered, assigned bus number 2
gx-ohci gx-ohci.0: supports USB remote wakeup
gx-ohci gx-ohci.0: irq 58, io mem 0xa0a00000904b8454
usb usb2: default language 0x0409
usb usb2: new device strings: Mfr=3, Product=2, SerialNumber=1
usb usb2: usb_probe_device
usb usb2: configuration #1 chosen from 1 choice
usb usb2: adding 2-:1.0 (config #1, interface 0)
hub 2-:1.0: usb_probe_interface
hub 2-:1.0: usb_probe_interface - got id
hub 2-:1.0: USB hub found
hub 2-:1.0: 1 port detected
hub 2-:1.0: standalone hub
hub 2-:1.0: no power switching (usb 1.0)
hub 2-:1.0: global over-current protection
hub 2-:1.0: power on to power good time: 4ms
hub 2-:1.0: local power source is good
hub 2-:1.0: no over-current condition exists
hub 2-:1.0: trying to enable port power on non-switchable hub

--------ohci base= 0xa0b00000
<7>: starting gx OHCI USB Controller no sem_wait.
<7>: Clock to USB host has been enabled 
gx-ohci gx-ohci.1: gx OHCI
gx-ohci gx-ohci.1: new USB bus registered, assigned bus number 3
gx-ohci gx-ohci.1: supports USB remote wakeup
gx-ohci gx-ohci.1: irq 57, io mem 0xa0b00000904b8454
usb usb3: default language 0x0409
usb usb3: new device strings: Mfr=3, Product=2, SerialNumber=1
usb usb3: usb_probe_device
usb usb3: configuration #1 chosen from 1 choice
usb usb3: adding 3-:1.0 (config #1, interface 0)
hub 3-:1.0: usb_probe_interface
hub 3-:1.0: usb_probe_interface - got id
hub 3-:1.0: USB hub found
hub 3-:1.0: 1 port detected
hub 3-:1.0: standalone hub
hub 3-:1.0: no power switching (usb 1.0)
hub 3-:1.0: global over-current protection
hub 3-:1.0: power on to power good time: 4ms
hub 3-:1.0: local power source is good
hub 3-:1.0: no over-current condition exists
hub 3-:1.0: trying to enable port power on non-switchable hub
goxceed vserson v1.9.6-4+patch
warning: want to protect len 0x3a0000; actually protect len 0x200000, please confirm.
Flash write protect(BOTTOM): 0 - 200000
INFO: mount /dev/flash/0/0x250000,0x80000, partition id = 4
usb_hcd_poll_rh_status, 531.
usb_hcd_poll_rh_status, 531.
usb_hcd_poll_rh_status, 531.
MPEG: date 2016.11.04 ver 1.1.2.1
DRA: date 2016.03.23 ver 1.1.2.0
[FB]:start:0x91800000, size:0x2800000
______---gx6605s---_____=|1:0:0xe4:55:0:0x18:&1:1:2:0:0:1,[line=337]
fe_profile.demod_type = 1
fe_profile.demod_i2c_id = 0
fe_profile.demod_chip_addr = 0xe4
fe_profile.tuner_type = 55
fe_profile.tuner_i2c_id = 0
fe_profile.tuner_chip_addr = 0x18

DEMOD, tuner register
success chip_id=0x4
tscfg=2
IQ= 1 
HV= 1 
gx3211_init!!

GX3211_GXDemod_Chanl_Rst

DEMOD, GX3211_GXDemod_Init

-[chip6605s] sn -----start---- 0x148
0 0 0 0 0 0 0 0 
-[_otp_read_chip_name] sn -----end---- 

[chip6605s] --name -----start**** 0x150

-[_otp_read_chip_name]--name-----end---** 

[chip6605s] -config -----start**** 0x101
conifg=0

[chip6605s] -section lock -----start**** 0x1ff
section=0
[panel] open failed!
expanded table, size 512
[GXCA]  I_OEM don't exist!
[GXCA]  V_OEM don't exist!

[NIM] ERROR!!!  NIM is NULL,please init NIM!
[FB]:start:0x11800000, size:0x2800000
framebuffer phys = 91800000, mmap = 0x91800000, size = 41943040, mgr = 0x91800000
[GUI]widget_new_child(default_text, TEXT) = NULL
[GUI]widget_new_child(text_style_1, TEXT) = NULL
[GUI]widget_new_child(text_style_2, TEXT) = NULL
[GUI]style num: 12
[XML] Parse: 1260 ms, total 2260 ms
enter app_full_screen_create:322
hub_events enter...
hub 1-:1.0: state 7 ports 2 chg 0000 evt 0002
hub 1-:1.0: port 1, status 0501, change 0001, 480 Mb/s
enter app_time_start:92  tm->config.gmt_local  = 0 
tdt create subt ok
hub 1-:1.0: debounce: port 1: total 100ms stable 100ms status 0x501
tdt create subt ok
usb 1-1: new high speed USB device using gx-ehci and address 2
usb 1-1: default language 0x0409
usb 1-1: new device strings: Mfr=1, Product=2, SerialNumber=3
usb 1-1: usb_probe_device
usb 1-1: configuration #1 chosen from 1 choice
usb 1-1: adding 1-1:1.0 (config #1, interface 0)
usb-storage 1-1:1.0: usb_probe_interface
usb-storage 1-1:1.0: usb_probe_interface - got id
======= IPTC data: =======
City          : G
City          : G
City          : G
Record vers.  : 0

not unlink
[GUI] ######## widget : wnd_main_menu ###### signal : app_main_menu_create excute too long ########
[GUI_Init] Success
[APP INIT]: 4320 ms, total 4990 ms
[GUI] No found Panel.
storage_probe():[604] bdev->lun=0x0

 Block count: 47258367, sd->block_size: 512.
the disk sd is:0x90b82400
it is the 1th disk
hub 1-:1.0: after hub_port_connect_change
hub 1-:1.0: after hub_port_connect_change
hub 2-:1.0: state 7 ports 1 chg 0000 evt 0000
hub 2-:1.0: after hub_port_connect_change
hub 3-:1.0: state 7 ports 1 chg 0000 evt 0000
hub 3-:1.0: after hub_port_connect_change
hub_events exit.
hub_events enter...
hub_events exit.
hub_events enter...
hub_events exit.
hub_events enter...
hub_events exit.

[HOTPLUG] PLUG_IN: /dev/usb0, 1 partition
[HOTPLUG] add device /dev/usb0
[HOTPLUG] add partition /mnt/usb01
Sl0v3C commented 7 years ago

Sometimes it will stuck very long time to mount the rootfs...

[    2.693742]  sda: sda1 sda2 sda3
[    2.704622] sd 0:0:0:0: [sda] Attached SCSI removable disk
[    2.773112] EXT4-fs (sda2): couldn't mount as ext3 due to feature incompatibilities
[    2.781374] random: fast init done

[  112.005791] random: crng init done
[  114.047103] EXT4-fs (sda2): recovery complete
[  116.109380] EXT4-fs (sda2): mounted filesystem with ordered data mode. Opts: (null)
[  116.117365] VFS: Mounted root (ext4 filesystem) on device 8:2.
[  116.126805] devtmpfs: mounted
[  116.129984] Freeing unused kernel memory: 128k freed
[  116.135120] This architecture does not have kernel memory protection.
[  116.481606] EXT4-fs (sda2): re-mounted. Opts: errors=remount-ro,data=ordered
[  127.915539] EXT4-fs (sda3): recovery complete
[  127.929985] EXT4-fs (sda3): mounted filesystem with ordered data mode. Opts: (null)
Starting logging: OK
Initializing random number generator... done.
Starting network: OK
sczh01 commented 7 years ago

HI,

What's your host version and GCC version?

Sl0v3C commented 7 years ago

Host version Ubuntu 12.04 Host GCC version is gcc (GCC) 4.9.4.

guoren83 commented 7 years ago

hardware problem??? Try another U-disk or USB-prot. :)

And let me know your pain, thx for your feed back.

Sl0v3C commented 7 years ago

@guoren83 I had tried 2 U-disk... It seems that need to wait for a little while before boot to kernel, then it can boot successfully. Like loading the kernel image or loading the contents of the U-disk. THX.

rameres8 commented 1 year ago

pls how to build software gx6605s/h and how to read kernel file