[Solved] Asus TB S

This is for any ARMv7 device that we do not officially support.

Re: [Solved, first stage] Asus TB S

Postby TheSaint » Sun Aug 19, 2018 6:59 pm

summers wrote:Or that the TB S bings up an OTG USB connection that looks like a USB stick

Yes. Only within certain condition (the visibility bits are saved). It is doing like a smartphone, the power cable is also used to access the eMMC.

My dear, today I've moved so many Gigabytes, I got dizzy :)

I got the eMMC, in good shape when I reinstalled DietPI. I still consider some particular condition which may affect the usage as OTG media. It is all to find in the first Megabyte.

One more trial, to rewrite the SD card with the good Installation. Then using -u-boot from the eMMC. It's supposed to boot, but I can't imaging why shouldn't get the rest from eMMC. I suspect that there are bits in the u-boot configuration that may be used to handle the USB stack as OTG media. These are not important when is written in a SD card. We should see what they do the Armbian & DiePI staff.

I'll be back....
TheSaint
 
Posts: 345
Joined: Mon Jul 23, 2018 7:57 am

Re: [Solved, first stage] Asus TB S

Postby summers » Mon Aug 20, 2018 10:17 am

This is interesting: https://github.com/TinkerBoard/debian_kernel/blob/develop/arch/arm/boot/dts/rk3288-miniarm.dts - its the source for the minarm device tree.

Advantage of working from source is it has comments and useful names. It does kind of suggest that its the wifi that is on sdio, also it has the eMMC bus width as 8, think that the mainline had 4 ...

Anyway I'll compare with changes I made, so may run up another tinkerS-rk3288.dtb this evening ...
summers
 
Posts: 868
Joined: Sat Sep 06, 2014 12:56 pm

Re: [Solved, first stage] Asus TB S

Postby TheSaint » Mon Aug 20, 2018 12:59 pm

Always thank you so much for your efforts :)
So we could have the Tinker Board running, version without eMMC. I wish we get also the S of TB :) Should we move for a new thread?
I'd suggest to concentrate for the u-boot handling the eMMC. In fact the source is the same as per kernel one, just used in a different stage.

The WiFi and eMMC should have the similar pin control

We might have a look at Armbian works. Perhaps even a branch above to see how they have achieved their progress.
TheSaint
 
Posts: 345
Joined: Mon Jul 23, 2018 7:57 am

Re: [Solved, first stage] Asus TB S

Postby TheSaint » Tue Aug 21, 2018 1:49 pm

Crawling to find a better solution, but I still have many doubts unanswered.
I compiled my u-boot, with little changes. But I think I didn't get how the resulting compilation should go into the eMMC header.
Let me describe what I've done.
Within the TB itself I started to make menuconfig. Loaded u.boot.git/configs/tinker-rk3288_defconfig, within the ncurses interfaces.
I checked whether the USB gadget and other USB definition were asserted and I saved to .config. Started the make, in less than 20 minutes I got the results.
Code: Select all
$ mkimage -n rk3288 -T rksd -d spl/u-boot-spl.bin idbspl.img
$ cat u-boot.bin >>idbspl.img
$ dd if=idbspl.img of=/dev/mmcblk1 bs=512 seek=64

No results.There might be an issue regarding the kernel used and the linux-headers, but the work finished without errors,
I've tried also this other approach:
Code: Select all
$ mkimage -n rk3288 -T rksd -d spl/u-boot-spl.bin idbspl.img
$ dd if=idbspl.img of=/dev/mmcblk1 bs=512 seek=64
$ sudo dd if=u-boot.bin of=/dev/mmcblk1 bs=512 seek=16384

I confess it's a bit of empiric learning.
TheSaint
 
Posts: 345
Joined: Mon Jul 23, 2018 7:57 am

Re: [Solved, first stage] Asus TB S

Postby summers » Tue Aug 21, 2018 2:17 pm

The first is what worked for me, although I didn't go via menuconfig. Did you get nothing on ttyS2?

When I get home I can post the u-boot.cfg file, which is very verbose, but gives everything defined - so you should be able to compare with yours.
summers
 
Posts: 868
Joined: Sat Sep 06, 2014 12:56 pm

Re: [Solved, first stage] Asus TB S

Postby TheSaint » Tue Aug 21, 2018 6:34 pm

Well, the second package still working successfully for SD card. The UART2 is currently working well. furthermore the dmesg are overlapping on the same tty2 :)
To complete the case we'd like to see why the USB-OTG doesn't behave correctly.
EDIT
I even tried to plug UART while plugging to the host PC, in search for any message for debug. But at that moment didn't show anything.

I was wrong there's the u-boot starting and it seems that it wants to go for a boot sequence. Perhaps the u-boot has failed somewhere, because it should only offer the USB-OTG access. Anyway it probably depend on which u-boot code I putted on.
EDIT-END
So for the current usage I have the hybrid installation running. I copied the SD card to the eMMC and the usb_gadget is OK.
I'd say that the headache is within the first 4 Mbytes, or less.
Last edited by TheSaint on Wed Aug 22, 2018 7:07 am, edited 1 time in total.
TheSaint
 
Posts: 345
Joined: Mon Jul 23, 2018 7:57 am

Re: [Solved, first stage] Asus TB S

Postby summers » Tue Aug 21, 2018 7:59 pm

here is my u-boot.cfg - try comparing to yours. Think this is the tinkerS one, so be aware of those changes ....
Code: Select all
#define CONFIG_SYS_MMCSD_FS_BOOT_PARTITION 1
#define CONFIG_SYS_SPI_U_BOOT_OFFS (128 << 10)
#define CONFIG_CMD_FAT 1
#define CONFIG_SPL_DM_SERIAL 1
#define CONFIG_BOOTM_NETBSD 1
#define CONFIG_OF_SPL_REMOVE_PROPS "pinctrl-0 pinctrl-names clock-names interrupt-parent assigned-clocks assigned-clock-rates assigned-clock-parents"
#define CONFIG_TPL_TEXT_BASE 0xff704000
#define CONFIG_CMD_FDT 1
#define CONFIG_USB_GADGET_DOWNLOAD 1
#define CONFIG_CMD_ITEST 1
#define CONFIG_BOOTM_VXWORKS 1
#define CONFIG_CMD_EDITENV 1
#define CONFIG_SPL_SPRINTF 1
#define CONFIG_FASTBOOT_GPT_NAME "gpt"
#define CONFIG_CMD_PART 1
#define CONFIG_MISC 1
#define CONFIG_SPL_LOGLEVEL 4
#define CONFIG_SPL_USE_ARCH_MEMSET 1
#define CONFIG_HAS_VBAR 1
#define CONFIG_CMD_ENV_EXISTS 1
#define CONFIG_CMD_CRC32 1
#define CONFIG_SYS_LONGHELP 1
#define CONFIG_DEBUG_UART_BASE 0xff690000
#define CONFIG_IS_MODULE(option) config_enabled(CONFIG_VAL(option ##_MODULE))
#define CONFIG_SYS_LOAD_ADDR 0x00800800
#define CONFIG_FASTBOOT_BUF_SIZE 0x8000000
#define CONFIG_HASH 1
#define CONFIG_USE_ARCH_MEMSET 1
#define CONFIG_DISPLAY_BOARDINFO 1
#define CONFIG_CMD_XIMG 1
#define CONFIG_CMD_CACHE 1
#define CONFIG_EXPERT 1
#define CONFIG_CMDLINE 1
#define CONFIG_MMC_DW 1
#define CONFIG_BOOTDELAY 2
#define CONFIG_USB_FUNCTION_ROCKUSB 1
#define CONFIG_DEBUG_UART_NS16550 1
#define CONFIG_CMD_BOOTEFI 1
#define CONFIG_SPI_FLASH
#define CONFIG_SYS_HELP_CMD_WIDTH 8
#define CONFIG_CMD_ROCKUSB 1
#define CONFIG_NR_DRAM_BANKS 1
#define CONFIG_EFI_PARTITION 1
#define CONFIG_DM_PMIC 1
#define CONFIG_FS_FAT 1
#define CONFIG_SYS_ARM_CACHE_CP15 1
#define CONFIG_BOOTM_RTEMS 1
#define CONFIG_SYS_CBSIZE 1024
#define CONFIG_PWM_ROCKCHIP 1
#define CONFIG_DM_I2C 1
#define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR 0x4000
#define CONFIG_BOOTM_LINUX 1
#define CONFIG_DEFAULT_FDT_FILE ""
#define CONFIG_BOARD_LATE_INIT 1
#define CONFIG_CREATE_ARCH_SYMLINK 1
#define CONFIG_CMD_CONSOLE 1
#define CONFIG_SUPPORT_OF_CONTROL 1
#define CONFIG_SPL_STRTO 1
#define CONFIG_PINCTRL_FULL 1
#define CONFIG_ERRNO_STR 1
#define CONFIG_BLK 1
#define CONFIG_SYS_CPU "armv7"
#define CONFIG_SPL_BOARD_INIT 1
#define CONFIG_SPL_STACK_R_ADDR 0x80000
#define CONFIG_BOOTP_PXE_CLIENTARCH 0x15
#define CONFIG_BOOTP_GATEWAY 1
#define CONFIG_SYS_THUMB_BUILD 1
#define CONFIG_PINCTRL 1
#define CONFIG_SYS_CACHELINE_SIZE 64
#define CONFIG_MMC 1
#define CONFIG_DM_ETH 1
#define CONFIG_SPL_OF_CONTROL 1
#define CONFIG_CMD_USB_MASS_STORAGE
#define CONFIG_SMBIOS_PRODUCT_NAME "tinker_rk3288"
#define CONFIG_CMD_MISC 1
#define CONFIG_DM_PWM 1
#define CONFIG_USB_DWC2 1
#define CONFIG_SPL_LIBCOMMON_SUPPORT 1
#define CONFIG_DEBUG_UART_CLOCK 24000000
#define CONFIG_ENV_OFFSET 0x3f8000
#define CONFIG_DISTRO_DEFAULTS 1
#define CONFIG_DM_DEVICE_REMOVE 1
#define CONFIG_MMC_WRITE 1
#define CONFIG_CMD_NET 1
#define CONFIG_USB_GADGET_VBUS_DRAW 2
#define CONFIG_CMD_NFS 1
#define CONFIG_SPL_SYS_THUMB_BUILD 1
#define CONFIG_ENV_SIZE 0x8000
#define CONFIG_MMC_DW_ROCKCHIP 1
#define CONFIG_SUPPORT_RAW_INITRD 1
#define CONFIG_CMD_FS_GENERIC 1
#define CONFIG_CMD_PING 1
#define CONFIG_SYS_MALLOC_LEN (32 << 20)
#define CONFIG_SYS_NS16550_MEM32
#define CONFIG_ZYNQ_GEM_I2C_MAC_OFFSET 0x0
#define CONFIG_SYS_MMC_ENV_DEV 1
#define CONFIG_SYS_TIMER_RATE (24 * 1000 * 1000)
#define CONFIG_LOCALVERSION ""
#define CONFIG_DEBUG_UART 1
#define CONFIG_SYS_TEXT_BASE 0x00000000
#define CONFIG_CC_OPTIMIZE_FOR_SIZE 1
#define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_USE_SECTOR 1
#define CONFIG_SYS_DEF_EEPROM_ADDR CONFIG_SYS_I2C_EEPROM_ADDR
#define CONFIG_REGEX 1
#define CONFIG_EFI_PARTITION_ENTRIES_NUMBERS 128
#define CONFIG_SYS_CONFIG_NAME "tinker_rk3288"
#define CONFIG_SPL_SYS_MALLOC_SIMPLE 1
#define CONFIG_OPTEE_LOAD_ADDR 0x00000000
#define CONFIG_CMD_FLASH 1
#define CONFIG_BOOTSTAGE_RECORD_COUNT 30
#define CONFIG_USB_FUNCTION_MASS_STORAGE 1
#define CONFIG_CMD_SAVEENV 1
#define CONFIG_PMIC_CHILDREN 1
#define CONFIG_MKIMAGE_DTC_PATH "dtc"
#define CONFIG_SYS_ARM_MMU 1
#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS 0
#define CONFIG_CMD_PMIC 1
#define CONFIG_GMAC_ROCKCHIP 1
#define CONFIG_BOOTM_PLAN9 1
#define CONFIG_IS_BUILTIN(option) config_enabled(CONFIG_VAL(option))
#define CONFIG_SPL_TEXT_BASE 0xff704000
#define CONFIG_SPL_DM_MMC 1
#define CONFIG_SERIAL_PRESENT 1
#define CONFIG_SPL_STACK_R_MALLOC_SIMPLE_LEN 0x2000
#define CONFIG_DM_MMC 1
#define CONFIG_CMD_GPT 1
#define CONFIG_TPL_SYS_MALLOC_F_LEN 0x2000
#define CONFIG_DM_REGULATOR_FIXED 1
#define CONFIG_DM_DEV_READ_INLINE 1
#define CONFIG_DM_WARN 1
#define CONFIG_BOOTP_DNS 1
#define CONFIG_SYS_CACHE_SHIFT_6 1
#define CONFIG_CMD_MEMORY 1
#define CONFIG_SYS_MAXARGS 16
#define CONFIG_SYSRESET 1
#define CONFIG_MMC_HW_PARTITIONING 1
#define CONFIG_SUPPORT_SPL 1
#define CONFIG_CMD_RUN 1
#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE + sizeof(CONFIG_SYS_PROMPT) + 16)
#define CONFIG_ENV_VARS_UBOOT_CONFIG 1
#define CONFIG_DM_SPI_FLASH 1
#define CONFIG_USB 1
#define CONFIG_DISPLAY_BOARDINFO_LATE 1
#define CONFIG_BOOTP_HOSTNAME 1
#define CONFIG_BOARDDIR board/rockchip/tinker_rk3288
#define CONFIG_SPL_LEGACY_IMAGE_SUPPORT 1
#define CONFIG_CPU_V7A 1
#define CONFIG_SPL_BOOTSTAGE_RECORD_COUNT 5
#define CONFIG_NET 1
#define CONFIG_BLOCK_CACHE 1
#define CONFIG_BOUNCE_BUFFER
#define CONFIG_OF_LIBFDT 1
#define CONFIG_ROCKCHIP_BOOT_MODE_REG 0xff730094
#define CONFIG_SPL_STACK 0xff718000
#define CONFIG_SYS_I2C_EEPROM_ADDR_OVERFLOW 0x0
#define CONFIG_SYS_MAX_FLASH_SECT 512
#define CONFIG_CLK 1
#define CONFIG_PHYLIB 1
#define CONFIG_GENERATE_SMBIOS_TABLE 1
#define CONFIG_SILENT_CONSOLE_UPDATE_ON_SET 1
#define CONFIG_SKIP_LOWLEVEL_INIT_ONLY
#define CONFIG_CMDLINE_EDITING 1
#define CONFIG_CMD_USB 1
#define CONFIG_DM_SERIAL 1
#define CONFIG_SYS_CONSOLE_IS_IN_ENV 1
#define CONFIG_CMD_EXT2 1
#define CONFIG_CMD_EXT4 1
#define CONFIG_BOOTCOMMAND "run distro_bootcmd"
#define CONFIG_ARCH_FIXUP_FDT_MEMORY 1
#define CONFIG_USB_GADGET_VENDOR_NUM 0x2207
#define CONFIG_SPL_I2C_SUPPORT 1
#define CONFIG_ISO_PARTITION 1
#define CONFIG_SYS_MALLOC_CLEAR_ON_INIT 1
#define CONFIG_ARCH_ROCKCHIP 1
#define CONFIG_SYS_EXTRA_OPTIONS ""
#define CONFIG_CMD_BOOTEFI_HELLO_COMPILE 1
#define CONFIG_HUSH_PARSER 1
#define CONFIG_CMD_DM 1
#define CONFIG_RAM 1
#define CONFIG_BOOTP_VCI_STRING "U-Boot.armv7"
#define CONFIG_SYS_MMC_MAX_BLK_COUNT 65535
#define CONFIG_DM 1
#define CONFIG_ZLIB 1
#define CONFIG_ROCKCHIP_GPIO 1
#define CONFIG_USB_GADGET_DUALSPEED 1
#define CONFIG_LIB_UUID 1
#define CONFIG_CMD_GO 1
#define CONFIG_SPL_BLK 1
#define CONFIG_USB_HOST 1
#define CONFIG_CMD_BOOTD 1
#define CONFIG_CMD_BOOTM 1
#define CONFIG_CMD_BOOTP 1
#define CONFIG_CMD_BOOTZ 1
#define CONFIG_SYS_NS16550 1
#define CONFIG_SYS_MALLOC_F 1
#define CONFIG_AUTO_COMPLETE 1
#define CONFIG_SPRINTF 1
#define CONFIG_DM_REGULATOR 1
#define CONFIG_CONSOLE_MUX 1
#define CONFIG_SYS_SOC "rockchip"
#define CONFIG_SPL_PMIC_CHILDREN 1
#define CONFIG_ENV_IS_IN_MMC 1
#define CONFIG_SYS_HZ 1000
#define CONFIG_SYS_MALLOC_F_LEN 0x2000
#define CONFIG_SYS_WHITE_ON_BLACK 1
#define CONFIG_DOS_PARTITION 1
#define CONFIG_GZIP 1
#define CONFIG_SYS_VENDOR "rockchip"
#define CONFIG_DM_USB 1
#define CONFIG_CMD_SF 1
#define CONFIG_SARADC_ROCKCHIP 1
#define CONFIG_USB_ETHER_SMSC95XX 1
#define CONFIG_CMD_DHRYSTONE 1
#define CONFIG_SYS_TIMER_BASE 0xff810020
#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS 0
#define CONFIG_REQUIRE_SERIAL_CONSOLE 1
#define CONFIG_IDENT_STRING ""
#define CONFIG_SPL_PRINTF 1
#define CONFIG_MTDIDS_DEFAULT ""
#define CONFIG_PRINTF 1
#define CONFIG_PINCTRL_GENERIC 1
#define CONFIG_SYS_BAUDRATE_TABLE { 9600, 19200, 38400, 57600, 115200 }
#define CONFIG_ETH_DESIGNWARE 1
#define CONFIG_VAL(option) config_val(option)
#define CONFIG_SPL_LIBGENERIC_SUPPORT 1
#define CONFIG_DM_STDIO 1
#define CONFIG_LOCALVERSION_AUTO 1
#define CONFIG_USB_DWC2_BUFFER_SIZE 64
#define CONFIG_FASTBOOT_FLASH_MMC_DEV 0
#define CONFIG_FASTBOOT_USB_DEV 0
#define CONFIG_SYS_SDRAM_BASE 0
#define CONFIG_IMAGE_FORMAT_LEGACY 1
#define CONFIG_SYS_I2C_EEPROM_BUS 0
#define CONFIG_SYS_BOOT_RAMDISK_HIGH
#define CONFIG_MMC_VERBOSE 1
#define CONFIG_FASTBOOT_BUF_ADDR 0x800800
#define CONFIG_SYS_TIMER_COUNTER (CONFIG_SYS_TIMER_BASE + 8)
#define CONFIG_NET_TFTP_VARS 1
#define CONFIG_SPL_LDSCRIPT "arch/$(ARCH)/cpu/u-boot-spl.lds"
#define CONFIG_USE_PRIVATE_LIBGCC 1
#define CONFIG_CMD_SPI 1
#define CONFIG_USE_TINY_PRINTF 1
#define CONFIG_CMD_DHCP 1
#define CONFIG_SPL_SERIAL_SUPPORT 1
#define CONFIG_FASTBOOT_CMD_OEM_FORMAT 1
#define CONFIG_USB_ETHER_ASIX 1
#define CONFIG_CMD_ECHO 1
#define CONFIG_SPL_REGMAP 1
#define CONFIG_STRTO 1
#define CONFIG_REGMAP 1
#define CONFIG_FAT_WRITE 1
#define CONFIG_CMD_TIME 1
#define CONFIG_USE_ARCH_MEMCPY 1
#define CONFIG_SPL_DRIVERS_MISC_SUPPORT 1
#define CONFIG_SPL_DM 1
#define CONFIG_SPL_PAD_TO 0
#define CONFIG_OF_CONTROL 1
#define CONFIG_EXTRA_ENV_SETTINGS "fdt_high=0x0fffffff\0" "initrd_high=0x0fffffff\0" "fdtfile=" CONFIG_DEFAULT_DEVICE_TREE ".dtb\0" "partitions=" PARTS_DEFAULT ENV_MEM_LAYOUT_SETTINGS ROCKCHIP_DEVICE_SETTINGS BOOTENV
#define CONFIG_EFI_PARTITION_ENTRIES_OFF 0
#define CONFIG_SPL_PINCTRL 1
#define CONFIG_BOOTP_PXE 1
#define CONFIG_CMD_FASTBOOT 1
#define CONFIG_HAS_THUMB2 1
#define CONFIG_SYS_INIT_SP_ADDR 0x00100000
#define CONFIG_SYS_ARCH "arm"
#define CONFIG_BAUDRATE 115200
#define CONFIG_SPL_PARTITION_UUIDS 1
#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1
#define CONFIG_SYS_BOARD "tinker_rk3288"
#define CONFIG_PARTITION_UUIDS 1
#define CONFIG_FASTBOOT 1
#define CONFIG_DM_GPIO 1
#define CONFIG_MTDPARTS_DEFAULT ""
#define CONFIG_DTC 1
#define CONFIG_SYS_ARM_ARCH 7
#define CONFIG_SPL_USE_ARCH_MEMCPY 1
#define CONFIG_I2C_EEPROM 1
#define CONFIG_TARGET_TINKER_RK3288 1
#define CONFIG_PMIC_RK8XX 1
#define CONFIG_FASTBOOT_FLASH 1
#define CONFIG_CMD_IMPORTENV 1
#define CONFIG_MMC_QUIRKS 1
#define CONFIG_PINMUX 1
#define CONFIG_HAVE_PRIVATE_LIBGCC 1
#define CONFIG_CMD_EXPORTENV 1
#define CONFIG_USB_HOST_ETHER 1
#define CONFIG_PARTITIONS 1
#define CONFIG_OF_TRANSLATE 1
#define CONFIG_SPL_STACK_R 1
#define CONFIG_CMD_I2C 1
#define CONFIG_ROCKCHIP_RK3288 1
#define CONFIG_SPL_CLK 1
#define CONFIG_BOARD_SPECIFIC_OPTIONS 1
#define CONFIG_CMD_ELF 1
#define CONFIG_BOOTSTAGE_STASH_SIZE 0x1000
#define CONFIG_EFI_LOADER 1
#define CONFIG_SMBIOS_MANUFACTURER "rockchip"
#define CONFIG_RANDOM_UUID 1
#define CONFIG_ROCKCHIP_SPL_RESERVE_IRAM 0x0
#define CONFIG_DM_SEQ_ALIAS 1
#define CONFIG_ROCKCHIP_USB2_PHY 1
#define CONFIG_SPL_ROCKCHIP_BACK_TO_BROM 1
#define CONFIG_FS_EXT4 1
#define CONFIG_SPL_FRAMEWORK 1
#define CONFIG_BOOTSTAGE_STASH_ADDR 0x0
#define CONFIG_SPI 1
#define CONFIG_SPL 1
#define CONFIG_CMD_SOURCE 1
#define CONFIG_SYS_PROMPT "=> "
#define CONFIG_SPL_RAM 1
#define CONFIG_BOOTP_BOOTPATH 1
#define CONFIG_USB_STORAGE 1
#define CONFIG_CMD_PXE 1
#define CONFIG_ADC 1
#define CONFIG_CMD_REGULATOR 1
#define CONFIG_IMAGE_SPARSE 1
#define CONFIG_LOGLEVEL 4
#define CONFIG_SYS_I2C_EEPROM_ADDR 0x0
#define CONFIG_SPL_SYS_MALLOC_F_LEN 0x2000
#define CONFIG_CMD_LOADB 1
#define CONFIG_CMD_LOADS 1
#define CONFIG_FS_FAT_MAX_CLUSTSIZE 65536
#define CONFIG_SILENT_CONSOLE 1
#define CONFIG_USE_BOOTCOMMAND 1
#define CONFIG_CMD_IMI 1
#define CONFIG_SPL_SYSCON 1
#define CONFIG_SF_DEFAULT_SPEED 20000000
#define CONFIG_SYSCON 1
#define CONFIG_PINCTRL_ROCKCHIP_RK3288 1
#define CONFIG_LMB
#define CONFIG_REGULATOR_RK8XX 1
#define CONFIG_AUTOBOOT 1
#define CONFIG_ARM 1
#define CONFIG_FASTBOOT_MBR_NAME "mbr"
#define CONFIG_HAVE_BLOCK_DEVICE 1
#define CONFIG_ROCKCHIP_BROM_HELPER 1
#define CONFIG_IS_ENABLED(option) (config_enabled(CONFIG_VAL(option)) || config_enabled(CONFIG_VAL(option ##_MODULE)))
#define CONFIG_CMD_BLOCK_CACHE 1
#define CONFIG_USB_GADGET_DWC2_OTG 1
#define CONFIG_OF_SEPARATE 1
#define CONFIG_CMD_GPIO 1
#define CONFIG_CMD_BDI 1
#define CONFIG_BOOTP_SUBNETMASK 1
#define CONFIG_MENU 1
#define CONFIG_NETDEVICES 1
#define CONFIG_DEFAULT_DEVICE_TREE "rk3288-tinkerS"
#define CONFIG_TPL_LDSCRIPT "arch/arm/mach-rockchip/rk3288/u-boot-tpl.lds"
#define CONFIG_PREBOOT
#define CONFIG_SPL_RAW_IMAGE_SUPPORT 1
#define CONFIG_USB_FUNCTION_FASTBOOT 1
#define CONFIG_USB_GADGET_MANUFACTURER "Rockchip"
#define CONFIG_CMD_MII 1
#define CONFIG_USB_GADGET 1
#define CONFIG_LIB_RAND 1
#define CONFIG_SIMPLE_BUS 1
#define CONFIG_SYS_EEPROM_SIZE 256
#define CONFIG_IMAGE_SPARSE_FILLBUF_SIZE 0x80000
#define CONFIG_USB_GADGET_PRODUCT_NUM 0x320a
#define CONFIG_ARM_ASM_UNIFIED 1
#define CONFIG_FASTBOOT_FLASH_MMC 1
#define CONFIG_ENABLE_ARM_SOC_BOOT0_HOOK 1
#define CONFIG_DEBUG_UART_SHIFT 2
#define CONFIG_CMD_MMC 1
#define CONFIG_SYS_I2C_ROCKCHIP 1
#define CONFIG_CMD_TFTPBOOT 1
#define CONFIG_DM_SPI 1
#define CONFIG_SPL_OF_LIBFDT 1
#define CONFIG_SPL_SERIAL_PRESENT 1
#define CONFIG_SPL_FS_LOAD_PAYLOAD_NAME "u-boot.img"
summers
 
Posts: 868
Joined: Sat Sep 06, 2014 12:56 pm

Re: [Solved, first stage] Asus TB S

Postby TheSaint » Wed Aug 22, 2018 3:42 am

I have a suspect that FASTBOOT is not the right option
Code: Select all
$ grep FASTBOOT u-boot.cfg
#define CONFIG_FASTBOOT_GPT_NAME "gpt"
#define CONFIG_FASTBOOT_BUF_SIZE 0x8000000
#define CONFIG_FASTBOOT_FLASH_MMC_DEV 0
#define CONFIG_FASTBOOT_USB_DEV 0
#define CONFIG_FASTBOOT_BUF_ADDR 0x800800
#define CONFIG_FASTBOOT_CMD_OEM_FORMAT 1
#define CONFIG_CMD_FASTBOOT 1
#define CONFIG_FASTBOOT 1
#define CONFIG_FASTBOOT_FLASH 1
#define CONFIG_FASTBOOT_MBR_NAME "mbr"
#define CONFIG_USB_FUNCTION_FASTBOOT 1
#define CONFIG_FASTBOOT_FLASH_MMC 1

Or the least is badly configure. I'm going to experiment a different setting.
I would put in this scenario: The back_to_bootrom might instruct to load the fast boot and then jump on it.

In the other hand I tinkered that u-boot is just a mini-kernel. So why not skip it and jump to the full blown kernel ?
And that it might be the meaning of fast boot, implemented by Google Android. Just figuring out that the actual process act in three steps, the mini loader loads a mini-kernel (u-uboot), then the u-boot loads an initramfs which later will load a full featured kernel.

For my taste there might be a shortcut, as I'm doing with my laptop, just jump to the kernel directly from the BIOS. Anyway I'm not proposing to break the mainlined scheme. It might be one's own option to do such shortcut.

But, there's a diversion, the u-boot is used to present the eMMC as UMS, when the power and data are sensed. Maybe the kernel might do the same. If I'm not wrong the /proc/config.gz has similar bits.
TheSaint
 
Posts: 345
Joined: Mon Jul 23, 2018 7:57 am

Re: [Solved, first stage] Asus TB S

Postby summers » Wed Aug 22, 2018 10:13 am

bootloaders, being it U-boot/Bios/CoreBoot/LibreBoot/Grub etc are more than mini kernels.

Problem is that when modern cpus swicth on, they are in a very basic state. Arms IIRC come up in 16bit mode, they can access sram, but not dram, etc.

Modern kernels also need a certain environment, e.g. for arm architecture, a device tree is needed to describe the hardware - without this the kernel doesn't know what its booing on (e.g. in your case, it is probably why the eMMC is unknown - the kernel knows nothing about it ...).

So the bootloader is needed to take the cpu from it virgin state, and set it up so linux can boot. This is the very least that the boot loader needs to do.

Now some bootloaders do more or less, Coreboot/libreboot do a lot less than BIOS, hence why its usually used on chromebooks.

Now u-boot isn't the only bootloader used on arms, but its the most popular. Its been the main one for 15 years or so. Its advanatage when developing a board, is soemthing simple can be written to flash via jtag, then that brings up a uart where developers can start interacting with the machine. With the machine developed with u-boot, it almost becomes easiest for the final product to keep using u-boot. Hence why you see it so much.

It also makes machines open, once u-boot is accessed you can do many things on the machine. Its why machines almost always have uart avaiable. I managed to brick my adsl router the other day - but it has uart holes, so when I mount some pins, I know I can talk to u-boot, and that give enough that I'll be able to recover the device.

Now as regards fast boot. There is a method in u-boot, given that it still needs to bring the machine up, and pass control to a kernel. Its what is know as falcon mode. the main u-boot saves its configuration straight to flash, then the spl can directly load that configuration and directly boot to the kernel. http://git.denx.de/?p=u-boot.git;a=blob;f=doc/README.falcon

Now in the rk3288, when the machine comes up, it at most can load a 32kB image. hence the spl on the rk3288 is very small - its probably not doing much more than bringing up the DRAM, so larger images can be loaded. It means that the rockhip doc says that falcon mode probably isn't possible - 32kB is just to limiting http://git.denx.de/?p=u-boot.git;a=blob;f=doc/README.rockchip;hb=HEAD#l154.

Me - I never used falcon mode, u-boot comes up quickly, its main delay is a few seconds so you can interrupt the boot. I wouldn't want to loose that. So I'm happy with the delay.

See also: http://schedule2012.rmll.info/IMG/pdf/LSM2012_UbootFalconMode_Babic.pdf and http://www.denx.de/en/pub/Documents/Presentations/EWC2012_Roeder_Zundel_Fastboot.pdf
summers
 
Posts: 868
Joined: Sat Sep 06, 2014 12:56 pm

Re: [Solved, first stage] Asus TB S

Postby TheSaint » Wed Aug 22, 2018 4:41 pm

You are a information mine, I'm learning great things.
Today I experimented all patches from Armbian, so I got improvements and strange side effects.
Herein the config
Code: Select all
CONFIG_CREATE_ARCH_SYMLINK=y
CONFIG_ARM=y
CONFIG_SYS_ARCH="arm"
CONFIG_SYS_CPU="armv7"
CONFIG_SYS_SOC="rockchip"
CONFIG_SYS_VENDOR="rockchip"
CONFIG_SYS_BOARD="tinker_rk3288"
CONFIG_SYS_CONFIG_NAME="tinker_rk3288"
CONFIG_HAS_VBAR=y
CONFIG_HAS_THUMB2=y
CONFIG_ARM_ASM_UNIFIED=y
CONFIG_SYS_ARM_CACHE_CP15=y
CONFIG_SYS_ARM_MMU=y
CONFIG_CPU_V7A=y
CONFIG_SYS_ARM_ARCH=7
CONFIG_SYS_CACHE_SHIFT_6=y
CONFIG_SYS_CACHELINE_SIZE=64
CONFIG_SYS_THUMB_BUILD=y
CONFIG_SPL_SYS_THUMB_BUILD=y
CONFIG_ENABLE_ARM_SOC_BOOT0_HOOK=y
CONFIG_USE_ARCH_MEMCPY=y
CONFIG_SPL_USE_ARCH_MEMCPY=y
CONFIG_USE_ARCH_MEMSET=y
CONFIG_SPL_USE_ARCH_MEMSET=y
CONFIG_SPL_LDSCRIPT="arch/$(ARCH)/cpu/u-boot-spl.lds"
CONFIG_ARCH_ROCKCHIP=y
CONFIG_SYS_TEXT_BASE=0x00000000
CONFIG_SPL_LIBCOMMON_SUPPORT=y
CONFIG_SPL_LIBGENERIC_SUPPORT=y
CONFIG_SYS_MALLOC_F_LEN=0x2000
CONFIG_ROCKCHIP_RK3288=y
CONFIG_TPL_LDSCRIPT="arch/arm/mach-rockchip/rk3288/u-boot-tpl.lds"
CONFIG_TPL_TEXT_BASE=0xff704000
CONFIG_SPL_ROCKCHIP_BACK_TO_BROM=y
CONFIG_ROCKCHIP_BOOT_MODE_REG=0xff730094
CONFIG_ROCKCHIP_SPL_RESERVE_IRAM=0
CONFIG_ROCKCHIP_BROM_HELPER=y
CONFIG_SPL_SERIAL_SUPPORT=y
CONFIG_BOARD_SPECIFIC_OPTIONS=y
CONFIG_TARGET_TINKER_RK3288=y
CONFIG_SPL_DRIVERS_MISC_SUPPORT=y
CONFIG_ENV_SIZE=0x8000
CONFIG_ENV_OFFSET=0x3f8000
CONFIG_SPL_SYS_MALLOC_F_LEN=0x2000
CONFIG_SPL=y
CONFIG_DEBUG_UART_BASE=0xff690000
CONFIG_DEBUG_UART_CLOCK=24000000
CONFIG_IDENT_STRING=""
CONFIG_SPL_STACK_R_ADDR=0x80000
CONFIG_DEFAULT_DEVICE_TREE="rk3288-tinker"
CONFIG_SMBIOS_PRODUCT_NAME="tinker_rk3288"
CONFIG_DEBUG_UART=y
CONFIG_LOCALVERSION=""
CONFIG_LOCALVERSION_AUTO=y
CONFIG_CC_OPTIMIZE_FOR_SIZE=y
CONFIG_DISTRO_DEFAULTS=y
CONFIG_ENV_VARS_UBOOT_CONFIG=y
CONFIG_SYS_MALLOC_F=y
CONFIG_TPL_SYS_MALLOC_F_LEN=0x2000
CONFIG_EXPERT=y
CONFIG_SYS_MALLOC_CLEAR_ON_INIT=y
CONFIG_IMAGE_FORMAT_LEGACY=y
CONFIG_SYS_EXTRA_OPTIONS=""
CONFIG_ARCH_FIXUP_FDT_MEMORY=y
CONFIG_BOOTSTAGE_RECORD_COUNT=30
CONFIG_SPL_BOOTSTAGE_RECORD_COUNT=5
CONFIG_BOOTSTAGE_STASH_ADDR=0
CONFIG_BOOTSTAGE_STASH_SIZE=0x1000
CONFIG_SD_BOOT=y
CONFIG_BOOTDELAY=5
CONFIG_USE_BOOTCOMMAND=y
CONFIG_BOOTCOMMAND="run distro_bootcmd"
CONFIG_MENU=y
CONFIG_LOGLEVEL=4
CONFIG_SPL_LOGLEVEL=4
CONFIG_SILENT_CONSOLE=y
CONFIG_SILENT_CONSOLE_UPDATE_ON_SET=y
CONFIG_CONSOLE_MUX=y
CONFIG_SYS_CONSOLE_IS_IN_ENV=y
CONFIG_SYS_STDIO_DEREGISTER=y
CONFIG_SUPPORT_RAW_INITRD=y
CONFIG_DEFAULT_FDT_FILE="rk3288-tinker.dtb"
CONFIG_BOARD_LATE_INIT=y
CONFIG_DISPLAY_BOARDINFO=y
CONFIG_DISPLAY_BOARDINFO_LATE=y
CONFIG_HASH=y
CONFIG_SUPPORT_SPL=y
CONFIG_SPL_FRAMEWORK=y
CONFIG_SPL_BOARD_INIT=y
CONFIG_SPL_RAW_IMAGE_SUPPORT=y
CONFIG_SPL_LEGACY_IMAGE_SUPPORT=y
CONFIG_SPL_SYS_MALLOC_SIMPLE=y
CONFIG_SPL_STACK_R=y
CONFIG_SPL_STACK_R_MALLOC_SIMPLE_LEN=0x2000
CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_USE_SECTOR=y
CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR=0x4000
CONFIG_SPL_EXT_SUPPORT=y
CONFIG_SPL_I2C_SUPPORT=y
CONFIG_SPL_PAYLOAD="u-boot.bin"
CONFIG_SPL_USB_GADGET_SUPPORT=y
CONFIG_CMDLINE=y
CONFIG_HUSH_PARSER=y
CONFIG_CMDLINE_EDITING=y
CONFIG_AUTO_COMPLETE=y
CONFIG_SYS_LONGHELP=y
CONFIG_SYS_PROMPT="=> "
CONFIG_AUTOBOOT=y
CONFIG_CMD_BDI=y
CONFIG_CMD_CONSOLE=y
CONFIG_CMD_BOOTD=y
CONFIG_CMD_BOOTM=y
CONFIG_CMD_BOOTZ=y
CONFIG_CMD_BOOTEFI=y
CONFIG_CMD_BOOTEFI_HELLO_COMPILE=y
CONFIG_CMD_ELF=y
CONFIG_CMD_FDT=y
CONFIG_CMD_GO=y
CONFIG_CMD_RUN=y
CONFIG_CMD_IMI=y
CONFIG_CMD_XIMG=y
CONFIG_CMD_EXPORTENV=y
CONFIG_CMD_IMPORTENV=y
CONFIG_CMD_EDITENV=y
CONFIG_CMD_SAVEENV=y
CONFIG_CMD_ENV_EXISTS=y
CONFIG_CMD_CRC32=y
CONFIG_CMD_MEMORY=y
CONFIG_CMD_DM=y
CONFIG_CMD_FASTBOOT=y
CONFIG_CMD_FLASH=y
CONFIG_CMD_GPIO=y
CONFIG_CMD_GPT=y
CONFIG_RANDOM_UUID=y
CONFIG_CMD_I2C=y
CONFIG_CMD_LOADB=y
CONFIG_CMD_LOADS=y
CONFIG_CMD_MMC=y
CONFIG_CMD_PART=y
CONFIG_CMD_SF=y
CONFIG_CMD_SPI=y
CONFIG_CMD_USB=y
CONFIG_CMD_ROCKUSB=y
CONFIG_CMD_ECHO=y
CONFIG_CMD_ITEST=y
CONFIG_CMD_SOURCE=y
CONFIG_CMD_NET=y
CONFIG_CMD_BOOTP=y
CONFIG_CMD_DHCP=y
CONFIG_BOOTP_BOOTPATH=y
CONFIG_BOOTP_DNS=y
CONFIG_BOOTP_GATEWAY=y
CONFIG_BOOTP_HOSTNAME=y
CONFIG_BOOTP_SUBNETMASK=y
CONFIG_BOOTP_PXE=y
CONFIG_BOOTP_PXE_CLIENTARCH=0x15
CONFIG_BOOTP_VCI_STRING="U-Boot.armv7"
CONFIG_CMD_TFTPBOOT=y
CONFIG_NET_TFTP_VARS=y
CONFIG_CMD_NFS=y
CONFIG_CMD_MII=y
CONFIG_CMD_PING=y
CONFIG_CMD_PXE=y
CONFIG_CMD_BLOCK_CACHE=y
CONFIG_CMD_CACHE=y
CONFIG_CMD_TIME=y
CONFIG_CMD_MISC=y
CONFIG_CMD_PMIC=y
CONFIG_CMD_REGULATOR=y
CONFIG_CMD_EXT2=y
CONFIG_CMD_EXT4=y
CONFIG_CMD_FAT=y
CONFIG_CMD_FS_GENERIC=y
CONFIG_MTDIDS_DEFAULT=""
CONFIG_MTDPARTS_DEFAULT=""
CONFIG_PARTITIONS=y
CONFIG_DOS_PARTITION=y
CONFIG_EFI_PARTITION=y
CONFIG_EFI_PARTITION_ENTRIES_NUMBERS=128
CONFIG_EFI_PARTITION_ENTRIES_OFF=0
CONFIG_PARTITION_UUIDS=y
CONFIG_SPL_PARTITION_UUIDS=y
CONFIG_SUPPORT_OF_CONTROL=y
CONFIG_DTC=y
CONFIG_OF_CONTROL=y
CONFIG_SPL_OF_CONTROL=y
CONFIG_OF_SEPARATE=y
CONFIG_OF_SPL_REMOVE_PROPS="pinctrl-0 pinctrl-names clock-names interrupt-parent assigned-clocks assigned-clock-rates assigned-clock-parents"
CONFIG_MKIMAGE_DTC_PATH="dtc"
CONFIG_ENV_IS_IN_MMC=y
CONFIG_NET=y
CONFIG_DM=y
CONFIG_SPL_DM=y
CONFIG_DM_WARN=y
CONFIG_DM_DEVICE_REMOVE=y
CONFIG_DM_STDIO=y
CONFIG_DM_SEQ_ALIAS=y
CONFIG_REGMAP=y
CONFIG_SPL_REGMAP=y
CONFIG_SYSCON=y
CONFIG_SPL_SYSCON=y
CONFIG_SIMPLE_BUS=y
CONFIG_OF_TRANSLATE=y
CONFIG_DM_DEV_READ_INLINE=y
CONFIG_ADC=y
CONFIG_SARADC_ROCKCHIP=y
CONFIG_BLK=y
CONFIG_HAVE_BLOCK_DEVICE=y
CONFIG_SPL_BLK=y
CONFIG_BLOCK_CACHE=y
CONFIG_CLK=y
CONFIG_SPL_CLK=y
CONFIG_FASTBOOT=y
CONFIG_USB_FUNCTION_FASTBOOT=y
CONFIG_FASTBOOT_BUF_ADDR=0x800800
CONFIG_FASTBOOT_BUF_SIZE=0x8000000
CONFIG_FASTBOOT_USB_DEV=0
CONFIG_FASTBOOT_FLASH=y
CONFIG_FASTBOOT_FLASH_MMC=y
CONFIG_FASTBOOT_FLASH_MMC_DEV=0
CONFIG_FASTBOOT_GPT_NAME="gpt"
CONFIG_FASTBOOT_MBR_NAME="mbr"
CONFIG_FASTBOOT_CMD_OEM_FORMAT=y
CONFIG_DM_GPIO=y
CONFIG_ROCKCHIP_GPIO=y
CONFIG_DM_I2C=y
CONFIG_SYS_I2C_ROCKCHIP=y
CONFIG_MISC=y
CONFIG_I2C_EEPROM=y
CONFIG_ZYNQ_GEM_I2C_MAC_OFFSET=0x0
CONFIG_SYS_I2C_EEPROM_ADDR=0
CONFIG_SYS_I2C_EEPROM_BUS=0
CONFIG_SYS_EEPROM_SIZE=256
CONFIG_SYS_EEPROM_PAGE_WRITE_BITS=0
CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS=0
CONFIG_SYS_I2C_EEPROM_ADDR_LEN=1
CONFIG_SYS_I2C_EEPROM_ADDR_OVERFLOW=0
CONFIG_MMC=y
CONFIG_MMC_WRITE=y
CONFIG_DM_MMC=y
CONFIG_SPL_DM_MMC=y
CONFIG_MMC_QUIRKS=y
CONFIG_MMC_HW_PARTITIONING=y
CONFIG_MMC_VERBOSE=y
CONFIG_MMC_DW=y
CONFIG_MMC_DW_ROCKCHIP=y
CONFIG_DM_SPI_FLASH=y
CONFIG_PHYLIB=y
CONFIG_DM_ETH=y
CONFIG_NETDEVICES=y
CONFIG_ETH_DESIGNWARE=y
CONFIG_GMAC_ROCKCHIP=y
CONFIG_PINCTRL=y
CONFIG_PINCTRL_FULL=y
CONFIG_PINCTRL_GENERIC=y
CONFIG_PINMUX=y
CONFIG_SPL_PINCTRL=y
CONFIG_PINCTRL_ROCKCHIP_RK3288=y
CONFIG_DM_PMIC=y
CONFIG_PMIC_CHILDREN=y
CONFIG_SPL_PMIC_CHILDREN=y
CONFIG_PMIC_RK8XX=y
CONFIG_DM_REGULATOR=y
CONFIG_DM_REGULATOR_FIXED=y
CONFIG_REGULATOR_RK8XX=y
CONFIG_DM_PWM=y
CONFIG_PWM_ROCKCHIP=y
CONFIG_RAM=y
CONFIG_SPL_RAM=y
CONFIG_BAUDRATE=115200
CONFIG_REQUIRE_SERIAL_CONSOLE=y
CONFIG_SERIAL_PRESENT=y
CONFIG_SPL_SERIAL_PRESENT=y
CONFIG_DM_SERIAL=y
CONFIG_SPL_DM_SERIAL=y
CONFIG_DEBUG_UART_NS16550=y
CONFIG_DEBUG_UART_SHIFT=2
CONFIG_SYS_NS16550=y
CONFIG_SPI=y
CONFIG_DM_SPI=y
CONFIG_SYSRESET=y
CONFIG_USB=y
CONFIG_DM_USB=y
CONFIG_USB_HOST=y
CONFIG_USB_DWC2=y
CONFIG_USB_DWC2_BUFFER_SIZE=64
CONFIG_ROCKCHIP_USB2_PHY=y
CONFIG_USB_STORAGE=y
CONFIG_USB_KEYBOARD=y
CONFIG_SYS_USB_EVENT_POLL=y
CONFIG_USB_GADGET=y
CONFIG_USB_GADGET_MANUFACTURER="ASUS"
CONFIG_USB_GADGET_VENDOR_NUM=0x0b05
CONFIG_USB_GADGET_PRODUCT_NUM=0x7820
CONFIG_USB_GADGET_DWC2_OTG=y
CONFIG_USB_GADGET_VBUS_DRAW=2
CONFIG_USB_GADGET_DUALSPEED=y
CONFIG_USB_GADGET_DOWNLOAD=y
CONFIG_USB_FUNCTION_MASS_STORAGE=y
CONFIG_USB_FUNCTION_ROCKUSB=y
CONFIG_DM_VIDEO=y
CONFIG_BACKLIGHT_PWM=y
CONFIG_VIDEO_BPP8=y
CONFIG_VIDEO_BPP16=y
CONFIG_VIDEO_BPP32=y
CONFIG_VIDEO_ANSI=y
CONFIG_CONSOLE_NORMAL=y
CONFIG_SYS_WHITE_ON_BLACK=y
CONFIG_I2C_EDID=y
CONFIG_DISPLAY=y
CONFIG_VIDEO_ROCKCHIP=y
CONFIG_VIDEO_ROCKCHIP_MAX_XRES=1920
CONFIG_VIDEO_ROCKCHIP_MAX_YRES=1080
CONFIG_DISPLAY_ROCKCHIP_HDMI=y
CONFIG_CONSOLE_SCROLL_LINES=10
CONFIG_VIDEO_DW_HDMI=y
CONFIG_FS_EXT4=y
CONFIG_FS_FAT=y
CONFIG_FAT_WRITE=y
CONFIG_FS_FAT_MAX_CLUSTSIZE=65536
CONFIG_HAVE_PRIVATE_LIBGCC=y
CONFIG_LIB_UUID=y
CONFIG_PRINTF=y
CONFIG_SPL_PRINTF=y
CONFIG_SPRINTF=y
CONFIG_SPL_SPRINTF=y
CONFIG_STRTO=y
CONFIG_SPL_STRTO=y
CONFIG_IMAGE_SPARSE=y
CONFIG_IMAGE_SPARSE_FILLBUF_SIZE=0x80000
CONFIG_USE_PRIVATE_LIBGCC=y
CONFIG_SYS_HZ=1000
CONFIG_USE_TINY_PRINTF=y
CONFIG_REGEX=y
CONFIG_LIB_RAND=y
CONFIG_CMD_DHRYSTONE=y
CONFIG_ERRNO_STR=y
CONFIG_OF_LIBFDT=y
CONFIG_SPL_OF_LIBFDT=y
CONFIG_GENERATE_SMBIOS_TABLE=y
CONFIG_SMBIOS_MANUFACTURER="rockchip"
CONFIG_EFI_LOADER=y
CONFIG_OPTEE_LOAD_ADDR=0x00000000

The good thing is the UMS mode is working now.
Code: Select all
U-Boot SPL 2018.09-rc1-00047-ga30691a538-dirty (Aug 22 2018 - 23:40:47 +0800)
Returning to boot ROM...

U-Boot 2018.09-rc1-00047-ga30691a538-dirty (Aug 22 2018 - 23:40:47 +0800)

Model: Tinker-RK3288
DRAM:  2 GiB
PC event = 0x20
usb connected to SDP, force enter ums mode
rk3288_maskrom_ctrl: enable_emmc = 1
usb_current_limit_ctrl: unlock_current = 1
MMC:   dwmmc@ff0c0000: 1, dwmmc@ff0f0000: 0
Loading Environment from MMC... *** Warning - bad CRC, using default environment

Failed (-5)
In:    serial
Out:   serial
Err:   serial
Model: Tinker-RK3288
Net:   eth0: ethernet@ff290000
UMS: LUN 0, dev 0, hwpart 0, sector 0x0, count 0x1d5a000

When u-boot started the eMMC is found
Code: Select all
=> mmc info     
Device: dwmmc@ff0f0000
Manufacturer ID: 90
OEM: 14a
Name: HAG4a
Bus Speed: 52000000
Mode : MMC High Speed (52MHz)
Rd Block Len: 512
MMC version 5.1
High Capacity: Yes
Capacity: 14.7 GiB
Bus Width: 8-bit
Erase Group Size: 512 KiB
HC WP Group Size: 4 MiB
User Capacity: 14.7 GiB WRREL
Boot Capacity: 4 MiB ENH
RPMB Capacity: 4 MiB ENH


The side effects are about once the kernel started, it is stuck to try adjusting the bus speed on mmc
Code: Select all
[  180.058185] mmc_host mmc0: Bus speed (slot 0) = 400000Hz (slot req 400000Hz, actual 400000HZ div = 0)
[  180.099389] mmc_host mmc0: Bus speed (slot 0) = 300000Hz (slot req 300000Hz, actual 300000HZ div = 0)
[  180.140614] mmc_host mmc0: Bus speed (slot 0) = 200000Hz (slot req 200000Hz, actual 200000HZ div = 0)
[  180.181872] mmc_host mmc0: Bus speed (slot 0) = 187500Hz (slot req 100000Hz, actual 93750HZ div = 1)

Hence I should go back and try the patches one by one :P
TheSaint
 
Posts: 345
Joined: Mon Jul 23, 2018 7:57 am

PreviousNext

Return to Community Supported

Who is online

Users browsing this forum: No registered users and 1 guest