5 Replies Latest reply on Feb 20, 2016 10:27 AM by xhumpty

    Edison /dev/usbmodem not showing up

    nehemias

      I am using the Intel Edison Kit for Arduino, I was playing with the environment variables while in U-boot, can't recalled exactly what I changed, last command I ran was run do_ota, that's what I wanted to do, the files from the Yocto image were copied to the OTG accesible FAT volume; the update process hung at some point, after reboot the /dev/usbodem device is not showing up; the volume is not showing anywhere, I am also getting the following errors while booting Linux

       

      [FAILED] Failed to start Load Kernel Modules.
      [FAILED] Failed to start Console System Startup Logging.
      [FAILED] Failed to start PulseAudio Sound System.
      See 'systemctl status systemd-modules-load.service' for details.
      

       

      systemctl status systemd-modules-load.service shows:

       

      root@edison:~# systemctl status systemd-modules-load.service
      ● systemd-modules-load.service - Load Kernel Modules
        Loaded: loaded (/lib/systemd/system/systemd-modules-load.service; static)
        Active: failed (Result: exit-code) since Sat 2000-01-01 00:00:14 UTC; 15 years 8 months ago
          Docs: man:systemd-modules-load.service(8)
                man:modules-load.d(5)
        Process: 109 ExecStart=/lib/systemd/systemd-modules-load (code=exited, status=1/FAILURE)
       Main PID: 109 (code=exited, status=1/FAILURE)
       
      Jan 01 00:00:13 edison systemd[1]: Starting Load Kernel Modules...
      Jan 01 00:00:14 edison systemd-modules-load[109]: Inserted module 'bcm4334x'
      Jan 01 00:00:14 edison systemd-modules-load[109]: Failed to insert 'bcm_bt_lp...
      Jan 01 00:00:14 edison systemd[1]: systemd-modules-load.service: main proce...RE
      Jan 01 00:00:14 edison systemd[1]: Failed to start Load Kernel Modules.
      Jan 01 00:00:14 edison systemd[1]: Unit systemd-modules-load.service entere...e.
      Hint: Some lines were ellipsized, use -l to show in full.
      

       

      I also tried to mount /dev/disk/by-partlabel/update somewhere but it also failed:

       

      root@edison:~# rmmod g_multi
      rmmod: can't unload 'g_multi': unknown symbol in module, or unknown parameter
      

       

      I was able to connect usb devices but now I get error, the board is powered externally and the switch is closer to the USB type A plug

       

      root@edison:/home# lsusb
      unable to initialize libusb: -99
      

       

      some other info:

       

      root@edison:/home# dmesg | grep usb
      [    0.207998] usbcore: registered new interface driver usbfs
      [    0.208101] usbcore: registered new interface driver hub
      [    0.208334] usbcore: registered new device driver usb
      [    0.755792] usbcore: registered new interface driver asix
      [    0.755874] usbcore: registered new interface driver cdc_subset
      [    0.756004] usbcore: registered new interface driver cdc_ncm
      [    0.758778] usbcore: registered new interface driver cdc_acm
      [    0.758898] usbcore: registered new interface driver usb-storage
      [    0.759076] usbcore: registered new interface driver usbserial
      [    0.759148] usbcore: registered new interface driver pl2303
      [    0.759216] usbserial: USB Serial support registered for pl2303
      [    1.609573] usbcore: registered new interface driver usbhid
      [    1.609593] usbhid: USB HID core driver
      [    1.614711] usbcore: registered new interface driver snd-usb-audio
      [    5.637711] systemd[1]: Expecting device sys-subsystem-net-devices-usb0.device...
      

       

      root@edison:/home# df
      Filesystem          1K-blocks      Used Available Use% Mounted on
      /dev/root              475080    441924        0 100% /
      devtmpfs                491416        0    491416  0% /dev
      tmpfs                  491728        0    491728  0% /dev/shm
      tmpfs                  491728      6628    485100  1% /run
      tmpfs                  491728        0    491728  0% /sys/fs/cgroup
      systemd-1                5862      5860        2 100% /boot
      tmpfs                  491728        4    491724  0% /tmp
      tmpfs                  491728        0    491728  0% /var/volatile
      /dev/mmcblk0p5            1003        19      913  2% /factory
      /dev/mmcblk0p7            5862      5860        2 100% /boot
      

       

      root@edison:/home# fw_printenv
      boot_target_cmd=run do_flash_os;run do_probe_dfu;run do_compute_target;run mmc-bootargs;run load_kernel;zboot ${loadaddr}
      bootargs=root=PARTUUID=012b3303-34ac-284d-99b4-34e03a2335f4 rootfstype=ext4 console=ttyMFD2 earlyprintk=ttyMFD2,keep loglevel=4 systemd.unit=multi-user.target hardware_id=00 g_multi.iSerialNumber=5fbed2a0b3f930325e3d8658a4e93261 g_multi.dev_addr=
      bootargs_console=console=ttyMFD2 earlyprintk=ttyMFD2,keep
      bootargs_debug=loglevel=4
      bootargs_target=multi-user
      bootcmd=echo "Target:${target_name}"; run do_partition; run do_handle_bootargs_mode;
      bootdelay=1
      contenido=el contenido es value
      dfu_alt_info=ifwi00 mmc 0 8192 mmcpart 1;ifwib00 mmc 0 8192 mmcpart 2;u-boot0 part 0 1;u-boot-env0 part 0 2;u-boot1 part 0 3;u-boot-env1 part 0 4;boot part 0 7;rootfs part 0 8;update part 0 9;home part 0 10;vmlinuz fat 0 7;initrd fat 0 7
      dfu_alt_info_ram=kernel ram ${loadaddr} 0x800000
      dfu_alt_info_reset=reset ram 0x0 0x0
      dfu_to_sec=3
      do_boot=run boot_target_cmd;
      do_boot_emmc=setenv myrootfs ${myrootfs_emmc}; run do_boot
      do_boot_sdcard=setenv myrootfs ${myrootfs_sdcard}; run do_boot
      do_compute_target=if itest.b ${first_install_retry} -gt ${first_install_max_retries}; then echo "Switch to Rescue target"; setenv bootargs_target rescue; saveenv; fi
      do_dfu_alt_info_ifwi=setenv dfu_alt_info "ifwi${hardware_id} mmc 0 8192 mmcpart 1;ifwib${hardware_id} mmc 0 8192 mmcpart 2"
      do_dfu_alt_info_mmc=setenv dfu_alt_info "ifwi${hardware_id} mmc 0 8192 mmcpart 1;ifwib${hardware_id} mmc 0 8192 mmcpart 2;u-boot0 part 0 1;u-boot-env0 part 0 2;u-boot1 part 0 3;u-boot-env1 part 0 4;boot part 0 7;rootfs part 0 8;update part 0 9;home part 0 10;vmlinuz fat 0 7;initrd fat 0 7"
      do_dnx=setenv dfu_alt_info ${dfu_alt_info_ram};dfu 0 ram 0 ram;run bootcmd
      do_fallback=echo "Unknown boot mode: $bootargs_mode"; env delete -f bootargs_mode; saveenv; echo "Resetting to default boot mode and reboot..."; reset;
      do_flash=run do_force_flash_os;
      do_flash_ifwi=run do_dfu_alt_info_ifwi ; dfu 0 mmc 0
      do_flash_os=if itest.b ${do_flash_os_done} -eq 1 ; then echo "Flashing already done..." ; else run do_force_flash_os; fi
      do_flash_os_done=1
      do_flashall=run do_partition;run do_flash_ifwi;run do_flash_os
      do_force_flash_os=run do_dfu_alt_info_mmc ; sleep 1 ; setenv do_flash_os_done 1 ; saveenv ; dfu 0 mmc 0
      do_force_partition=echo "Partitioning using GPT"; gpt write mmc 0 ${partitions} ; mmc rescan; setenv do_partition_done 1 ; saveenv
      do_handle_bootargs_mode=run do_preprocess_bootargs_mode; if itest.s $bootargs_mode == "ota" ; then run do_ota; fi; if itest.s $bootargs_mode == "boot" ; then run do_boot; fi; if itest.s $bootargs_mode == "flash"; then run do_flash; fi; run do_fallback; exit;
      do_load_ota_scr=if fatload mmc 0:9 $ota_script_addr ota_update.scr ; then setenv ota_status 0 ; else setenv ota_status 1 ; fi
      do_ota=run do_ota_init ; run do_load_ota_scr ; run do_source_ota_scr ; run do_ota_clean
      do_ota_clean=saveenv ; reset
      do_ota_init=setenv ota_status 1 ; env delete -f bootargs_mode
      do_partition=if itest.b ${do_partition_done} -eq 1; then echo "Partitioning already done..."; else run do_force_partition ; fi
      do_partition_done=1
      do_preprocess_bootargs_mode=if env exists bootargs_mode ; then ; else setenv bootargs_mode "boot" ;fi;
      do_probe_dfu=run do_dfu_alt_info_mmc ; dfu 0 mmc 0 $dfu_to_sec
      do_source_ota_scr=if test $ota_status -eq 0 ; then if source $ota_script_addr ; then setenv ota_status 0 ; else setenv ota_status 2 ; fi ; fi
      ejemplo=setenv contenido el contenido es value
      first_install_max_retries=3
      first_install_retry=0
      hardware_id=00
      hola=mundo
      init_dfu=run do_dfu_alt_info_mmc ; saveenv
      key=value
      load_kernel=fatload mmc 0:7 ${loadaddr} vmlinuz
      loadaddr=0x100000
      mmc-bootargs=setenv bootargs root=${myrootfs} rootdelay=3 rootfstype=ext4 ${bootargs_console} ${bootargs_debug} systemd.unit=${bootargs_target}.target hardware_id=${hardware_id} g_multi.iSerialNumber=${serial#} g_multi.dev_addr=${usb0addr}
      myrootfs=PARTUUID=012b3303-34ac-284d-99b4-34e03a2335f4
      myrootfs_emmc=PARTUUID=012b3303-34ac-284d-99b4-34e03a2335f4
      myrootfs_sdcard=/dev/mmcblk1p1
      ota_abort=1
      ota_abort_reason=Partition rootfs too small for edison-image-edison.ext4
      ota_checked=0
      ota_done=0
      ota_image_name=edison-image-edison.ext4
      ota_script_addr=0x100000
      ota_status=0
      ota_update_retry=0
      ota_verbose=1
      partitions=uuid_disk=${uuid_disk};name=u-boot0,start=1MiB,size=2MiB,uuid=${uuid_uboot0};name=u-boot-env0,size=1MiB,uuid=${uuid_uboot_env0};name=u-boot1,size=2MiB,uuid=${uuid_uboot1};name=u-boot-env1,size=1MiB,uuid=${uuid_uboot_env1};name=factory,size=1MiB,uuid=${uuid_factory};name=panic,size=24MiB,uuid=${uuid_panic};name=boot,size=32MiB,uuid=${uuid_boot};name=rootfs,size=512MiB,uuid=${uuid_rootfs};name=update,size=768MiB,uuid=${uuid_update};name=home,size=-,uuid=${uuid_home};
      serial#=5fbed2a0b3f930325e3d8658a4e93261
      setenv=mmc-bootargs setenv bootargs root=PARTUUID=${uuid_rootfs} rootfstype=ext4 ${bootargs_console} ${bootargs_debug} systemd.unit=${bootargs_target}.target hardware_id=${hardware_id} g_multi.iSerialNumber=${serial#} g_multi.dev_addr=${usb0addr}’
      setenv mmc-bootargs setenv bootargs root=PARTUUID=012b3303-34ac-284d-99b4-34e03a2335f4 rootfstype=ext4 console=ttyMFD2 earlyprintk=ttyMFD2,keep loglevel=4 systemd.unit=multi-user.target hardware_id=00 g_multi.iSerialNumber=5fbed2a0b3f930325e3d8658a4e93261 g_multi.dev_addr=’
      stderr=serial
      stdin=serial
      stdout=serial
      target_name=blank
      uuid_boot=db88503d-34a5-3e41-836d-c757cb682814
      uuid_disk=21200400-0804-0146-9dcc-a8c51255994f
      uuid_factory=333a128e-d3e3-b94d-92f4-d3ebd9b3224f
      uuid_home=f13a0978-b1b5-1a4e-8821-39438e24b627
      uuid_panic=f20aa902-1c5d-294a-9177-97a513e3cae4
      uuid_rootfs=012b3303-34ac-284d-99b4-34e03a2335f4
      uuid_uboot0=d117f98e-6f2c-d04b-a5b2-331a19f91cb2
      uuid_uboot1=8a4bb8b4-e304-ae48-8536-aff5c9c495b1
      uuid_uboot_env0=25718777-d0ad-7443-9e60-02cb591c9737
      uuid_uboot_env1=08992135-13c6-084b-9322-3391ff571e19
      uuid_update=faec2ecf-8544-e241-b19d-757e796da607
      

       

      I was trying to reflash the edison because its storage got to a 100%, now I can't because the flashall.sh script can't see the device either