 by TheSaint » Mon Oct 29, 2018 1:11 am
by TheSaint » Mon Oct 29, 2018 1:11 am 
			
			$this->bbcode_second_pass_quote('summers', 'T')hing is the devnum is I think only used in uboot.
Alright, but this will mess up the partition definition, I think.
I'm unsure, I'll try to inspect when drop me to the busybox shell.
EDITOk, trying rk3288-tinker.dtb from stock kernel
Manual commands to the u-boot shell$this->bbcode_second_pass_code('', '=> setenv rootcmd "LABEL=TB-MM-root"
=> setenv fdtfile rk3288-tinker.dtb 
=> setenv bootargs "console=ttyS2,115200n8 root=${rootcmd} quiet rw rootwait"
=> ls mmc 0:1 /boot
<DIR>       4096 .
<DIR>       4096 ..
<DIR>       4096 dtb
             735 boot.scr
         5656876 initramfs-linux.img
         6355984 zImage
         8693760 vmlinuz-4.14.67-rockchip
         5016719 initramfs-linux.img.gz
         3741218 uInitrd-4.14.67-rockchip
<DIR>       4096 dtbs
<SYM>         22 uInitrd
             239 mkscr
             153 armbianEnv.txt
             663 boot.txt
             153 boot.env
=> setenv devtype mmc
=> setenv devnum 0   
=> setenv bootpart 1
=> load ${devtype} ${devnum}:${bootpart} ${kernel_addr_r} /boot/zImage
6355984 bytes read in 149 ms (40.7 MiB/s)
=> load ${devtype} ${devnum}:${bootpart} ${fdt_addr_r} /boot/dtbs/${fdtfile}
51883 bytes read in 4 ms (12.4 MiB/s)
=> fdt addr ${fdt_addr_r}
=> fdt resize 4096
=> fdt set /dwmmc@ff0c0000 broken-cd
=> load ${devtype} ${devnum}:${bootpart} ${ramdisk_addr_r} /boot/initramfs-linux.img
5656876 bytes read in 133 ms (40.6 MiB/s)
=> bootz ${kernel_addr_r} ${ramdisk_addr_r}:${filesize} ${fdt_addr_r}')
Result
$this->bbcode_second_pass_code('', '# ls /proc/device-tree/
#address-cells                 power-management@ff730000
#size-cells                    pwm@ff680000
__symbols__                    pwm@ff680010
aliases                        pwm@ff680020
amba                           pwm@ff680030
arm-pmu                        qos@ffaa0000
bus_intmem@ff700000            qos@ffaa0080
chosen                         qos@ffad0000
clock-controller@ff760000      qos@ffad0100
compatible                     qos@ffad0180
cpu-opp-table                  qos@ffad0400
cpus                           qos@ffad0480
cypto-controller@ff8a0000      qos@ffad0500
display-subsystem              qos@ffad0800
dp@ff970000                    qos@ffad0880
dwmmc@ff0c0000                 qos@ffad0900
dwmmc@ff0d0000                 qos@ffae0000
dwmmc@ff0e0000                 qos@ffaf0000
dwmmc@ff0f0000                 qos@ffaf0080
efuse@ffb40000                 reserved-memory
ethernet@ff290000              rga@ff920000
external-gmac-clock            saradc@ff100000
gpio-keys                      sdmmc-regulator
gpio-leds                      serial@ff180000
gpu-opp-table                  serial@ff190000
gpu@ffa30000                   serial@ff1b0000
hdmi@ff980000                  serial@ff1c0000
i2c@ff140000                   serial@ff690000
i2c@ff150000                   sound
i2c@ff160000                   sound@ff88b0000
i2c@ff170000                   spi@ff110000
i2c@ff650000                   spi@ff120000
i2c@ff660000                   spi@ff130000
i2s@ff890000                   sram@ff720000
interrupt-controller@ffc01000  syscon@ff740000
interrupt-parent               syscon@ff770000
iommu@ff900800                 thermal-zones
iommu@ff914000                 timer
iommu@ff930300                 timer@ff810000
iommu@ff940300                 tsadc@ff280000
iommu@ff9a0800                 usb@ff500000
iommu@ff9c0440                 usb@ff540000
lvds@ff96c000                  usb@ff580000
memory                         usb@ff5c0000
mipi@ff960000                  vop@ff930000
model                          vop@ff940000
name                           vsys-regulator
oscillator                     watchdog@ff800000
pinctrl
dmseg listing>>>
[    2.477556] mmc_host mmc0: Bus speed (slot 0) = 50000000Hz (slot req 50000000Hz, actual 50000000HZ div = 0)
[    2.477619] mmc0: new high speed SDHC card at address 0007
[    2.478329] mmcblk0: mmc0:0007 SD16G 14.4 GiB 
[    2.483489]  mmcblk0: p1 p2 p3
# ls /dev/mmc*            ## without SD card
ls: /dev/mmc*: No such file or directory
# ls /dev/mm*             ## with inserted SD card
/dev/mmcblk0    /dev/mmcblk0p1  /dev/mmcblk0p2  /dev/mmcblk0p3')
So the addressing is wrong, because the partitions are from the SD card. I loaded the parameter manually and they were pointing to eMMC for u-boot to start.
After a normal start up with rk3288-tinkerS.dtb$this->bbcode_second_pass_code('', '$ s /dev/mm*
/dev/mmcblk0    /dev/mmcblk0p3     /dev/mmcblk2boot1  /dev/mmcblk2rpmb
/dev/mmcblk0p1  /dev/mmcblk2       /dev/mmcblk2p1
/dev/mmcblk0p2  /dev/mmcblk2boot0  /dev/mmcblk2p2')
I'm thinking that the additional commands 
     fdt addr ${fdt_addr_r}
    fdt resize 4096
    fdt set /dwmmc@ff0c0000 broken-cdmay upset the eMMC recognition.
One more round, without that, 
NO differences.