Hello, I have been trying for the past 2-3 days to boot my udoo board through ssd. But the udoo board has stopped detecting my ssd. When i run the "sata part" command i get an error which says "AHCI 0000.0000 1 slots 1 ports ? Gbps 0x0 impl SATA mode flags = ** No port Device detected**" but when i boot via sdcard i see the SSD filesystem mounted under "/media" directory. please let me know what i'm doing wrong. I am using the kingston ssdnow 300 120gb disk.
To make it boot from sata you use the uboot env variables :- setenv sataroot "/dev/sda1" setenv satadev 0 setenv satapart 1 setenv loaduimagesata 'ext2load sata ${satadev}:${satapart} ${loadaddr} ${uimage}' setenv sataargs 'setenv bootargs console=${console},${baudrate} root=${sataroot} ${hdmi_patch} fbmem=24M video=mxcfb0:dev=hdmi,1920x1080M@60,bpp=32' setenv sataboot 'echo Booting from sata ...; run sataargs ; bootm' setenv bootcmd 'sata dev ${satadev}; run loaduimagesata; run sataboot;' saveenv reset Try add this line by line into uboot. But it`s the "setenv bootcmd 'sata dev ${satadev}; run loaduimagesata; run sataboot;'" which make it boot , the rest are just set up variables , so leave this out until to want it to boot from the sata drive.
Yes i have tried the above mentioned method before. Infact all my environmental variables have been setup just as you have illustrated. The problem is that uboot is unable to recognize sata device. Now it says "loaduimage" not defined and "sataboot" not defined.
Code: bootdelay=3 baudrate=115200 ipaddr=192.168.1.103 serverip=192.168.1.101 netmask=255.255.255.0 loadaddr=0x10800000 rd_loadaddr=(0x10800000 + 0x300000) uboot=u-boot.bin kernel=uImage memory=mem=1024M bootdev=mmc dev 2; ext2load mmc 2:1 option=rootwait rw fixrtc rootflags=barrier=1 setvideomode=setenv videomode video=mxcfb0:dev=hdmi,1920x1080M@60,bpp=32 cpu_freq=arm_freq=996 setbootargs=setenv bootargs console=ttymxc1,115200 ${root} ${option} ${memory} ${cpu_freq} ${videomode} setbootdev=setenv boot_dev ${bootdev} 10800000 /boot/uImage ethact=FEC0 mmcroot=root=/dev/sda1 stdin=serial stdout=serial stderr=serial sataroot=/dev/sda1 satadev=0 satapart=1 loaduimagesata=ext2load sata ${satadev}:{satapart} ${loadaddr} ${uimage} sataargs=setenv bootargs console=${console},${baudrate} root=${sataroot} ${hdmi_patch} fbmem=24M video=mxcfb0:dev=hdmi,1920x1080@60,bpp=32 sataboot=echo Booting from sata...; run sataargs; bootm bootcmd=sata dev ${satadev};run loaduimagesata;run sataboot; root=root=/dev/sda1 Environment size: 1004/8188 bytes
I may be wrong shouldn`t this be :- loaduimagesata=ext2load sata ${satadev}:${satapart} ${loadaddr} ${uimage} Because I would say the $ part is very important which say use the env variable satapart not the string satapart
Yes you are right. I changed the error but the result is still the same. Even when i boot from my sdcard, i stop the autoboot process from the serial console and check if uboot is recognizing my ssd. But this is what i get Code: U-Boot 2009.08-svn89 (Oct 29 2013 - 16:13:13) CPU: Freescale i.MX6 family TO1.2 at 792 MHz Thermal sensor with ratio = 176 Temperature: 33 C, calibration data 0x55a4d569 mx6q pll1: 792MHz mx6q pll2: 528MHz mx6q pll3: 480MHz mx6q pll8: 50MHz ipg clock : 66000000Hz ipg per clock : 66000000Hz uart clock : 80000000Hz cspi clock : 60000000Hz ahb clock : 132000000Hz axi clock : 264000000Hz emi_slow clock: 132000000Hz ddr clock : 528000000Hz usdhc1 clock : 198000000Hz usdhc2 clock : 198000000Hz usdhc3 clock : 198000000Hz usdhc4 clock : 198000000Hz nfc clock : 24000000Hz Board: i.MX6Q-UDOO: unknown-board Board: 0x63012 [POR] Boot Device: NOR I2C: ready DRAM: 1 GB MMC: FSL_USDHC: 0,FSL_USDHC: 1,FSL_USDHC: 2,FSL_USDHC: 3 In: serial Out: serial Err: serial Net: got MAC address from IIM: 00:c0:08:88:23:92 FEC0 Hit any key to stop autoboot: 3 0 MX6Q UDOO U-Boot > sata part AHCI 0000.0000 1 slots 1 ports ? Gbps 0x0 impl SATA mode flags: No port device detected! MX6Q UDOO U-Boot >
What did you use to check the sata is working , sata part ? , ALSO you are on the old version of uboot which may be the problem . U-Boot 2013.10-rc3 (Jan 20 2014 - 13:33:34) CPU: Freescale i.MX6Q rev1.2 at 792 MHz Reset cause: WDOG Board: UDOO DRAM: 1 GiB MMC: FSL_SDHC: 0 auto-detected panel HDMI Display: HDMI (1024x768) In: serial Out: serial Err: serial Net: using phy at 6 FEC [PRIME] Hit any key to stop autoboot: 0 UDOO board => sata part AHCI 0001.0300 32 slots 1 ports 3 Gbps 0x1 impl SATA mode flags: ncq stag pm led clo only pmp pio slum part SATA Device Info: S/N: OCZ-HOP6C4P3K35C4C78 Product model number: OCZ-AGILITY3 Firmware version: 2.15 Capacity: 234441648 sectors Partition Map for SATA device 0 -- Partition Type: DOS Part Start Sector Num Sectors UUID Type 1 2048 33554432 4e84aebd-01 83 2 33556480 200885168 4e84aebd-02 83 UDOO board =>
yes you are right. I was working with an older version of u-boot, switched to the 2013 version now and everything works perfectly. Thank you so much for your help