Install with install.scr

      Install with install.scr

      Hi,

      i try to install my Kernel and rootfs from usb-stick with an install-script.
      I found this thread: http://forum.fs-net.de/index.php/Thread/3439-Automagic-update-script-install-scr/
      I created my own install script and compiled it with mkimage

      Source Code

      1. usb stop
      2. usb start
      3. mmc rescan
      4. load ${updatedev} ${loadaddr} uImage
      5. nand erase.part Kernel
      6. nand write ${loadaddr} Kernel ${filesize}
      7. nand erase.part TargetFS
      8. ubi part TargetFS
      9. ubi create rootfs
      10. load ${updatedev} ${loadaddr} rootfs.ubifs
      11. ubi write ${loadaddr} rootfs ${filesize}
      12. echo "Installation complete ${updatedev}"
      13. echo
      14. echo "Please set/verify ethernet address(es) now and call saveenv"


      When i start a clean PicoModA9 (NBOOT V25 and u-boot 2014.1 is installed) I get the following output:

      Source Code

      1. ---- Trying install from usb 0 with install.scr ----
      2. Loading /install.scr ... done!
      3. Loaded!
      4. stopping USB..
      5. EHCI failed to shut down host controller.
      6. (Re)start USB...
      7. USB0: lowlevel init failed as HOST
      8. USB1: USB EHCI 1.00
      9. scanning bus 1 for devices... 3 USB Device(s) found
      10. scanning usb for storage devices... 1 Storage Device(s) found
      11. MMC: no card present
      12. Loading /uImage ... done!
      13. 4597704 bytes read in 4255 ms (1 MiB/s)
      14. NAND erase.part: device 0 offset 0x240000, size 0x5c0000
      15. Erasing at 0x7e0000 -- 100% complete.
      16. OK
      17. NAND write: device 0 offset 0x240000, size 0x4627c8
      18. 4597704 bytes written: OK
      19. NAND erase.part: device 0 offset 0x800000, size 0xf800000
      20. Erasing at 0xffe0000 -- 100% complete.
      21. OK
      22. UBI: attaching mtd1 to ubi0
      23. UBI: physical eraseblock size: 131072 bytes (128 KiB)
      24. UBI: logical eraseblock size: 126976 bytes
      25. UBI: smallest flash I/O unit: 2048
      26. UBI: VID header offset: 2048 (aligned 2048)
      27. UBI: data offset: 4096
      28. UBI: empty MTD device detected
      29. UBI: create volume table (copy #1)
      30. UBI: create volume table (copy #2)
      31. UBI: attached mtd1 to ubi0
      32. UBI: MTD device name: "mtd=6"
      33. UBI: MTD device size: 248 MiB
      34. UBI: number of good PEBs: 1984
      35. UBI: number of bad PEBs: 0
      36. UBI: max. allowed volumes: 128
      37. UBI: wear-leveling threshold: 4096
      38. UBI: number of internal volumes: 1
      39. UBI: number of user volumes: 0
      40. UBI: available PEBs: 1961
      41. UBI: total number of reserved PEBs: 23
      42. UBI: number of PEBs reserved for bad PEB handling: 19
      43. UBI: max/mean erase counter: 1/0
      44. No size specified -> Using max size (248999936)
      45. Creating dynamic volume rootfs of size 248999936
      46. Loading /rootfs.ubifs ... EHCI timed out on TD - token=0x1e008d80
      47. EHCI timed out on TD - token=0x80008d80
      48. EHCI timed out on TD - token=0x80008d80
      49. EHCI timed out on TD - token=0x80008d80
      50. EHCI timed out on TD - token=0x801f8c80
      51. EHCI timed out on TD - token=0x80008d80
      52. EHCI timed out on TD - token=0x80008d80
      53. EHCI timed out on TD - token=0x80008d80
      54. EHCI timed out on TD - token=0x801f8c80
      55. EHCI timed out on TD - token=0x80008d80
      56. EHCI timed out on TD - token=0x80008d80
      57. EHCI timed out on TD - token=0x80008d80
      58. EHCI timed out on TD - token=0x801f8c80
      59. EHCI timed out on TD - token=0x80008d80
      60. EHCI timed out on TD - token=0x80008d80
      61. EHCI timed out on TD - token=0x80008d80
      62. EHCI timed out on TD - token=0x801f8c80
      63. EHCI timed out on TD - token=0x80008d80
      64. EHCI timed out on TD - token=0x80008d80
      65. EHCI timed out on TD - token=0x80008d80
      66. EHCI timed out on TD - token=0x801f8c80
      67. EHCI timed out on TD - token=0x80008d80
      68. EHCI timed out on TD - token=0x80008d80
      69. EHCI timed out on TD - token=0x80008d80
      70. done!
      71. Writing to volume rootfs ... OK, 4597704 bytes stored
      72. Installation complete usb 0
      73. Please set/verify ethernet address(es) now and call saveenv
      74. ---- install COMPLETE! ----


      As you can see the rootfs-file is not properly loaded. Afterwards the Kernel starts and gets a kernel panic when mounting the rootfs.

      Installation via tftp works fine.

      Do you have any ideas how to fix this EHCI timeout problem?

      Best Regards
      Ruben
      The U-Boot from release fsimx6_v3.0 should solve this problem.

      Your F&S Support Team
      F&S Elektronik Systeme GmbH
      As this is an international forum, please try to post in English.
      Da dies ein internationales Forum ist, bitten wir darum, Beiträge möglichst in Englisch zu verfassen.