Jump to content

andrewz1

Members
  • Posts

    5
  • Joined

  • Last visited

Profile Information

  • Gender
    Male

Recent Profile Visitors

880 profile views
  1. @Igor I created pull request for this issue https://github.com/armbian/build/pull/6057.
  2. Hi! The root of cause is not controller itself, but pcie phy. It's not properly initialized on module init. So when device is cold-booted (after power on) phy stay in "factory" state, but after warm reboot phy stay in "power_on" state and prevent any training. Patch https://github.com/armbian/build/pull/4308/files works because after first fail phy reset by pcie driver. https://github.com/andrewz1/rk3399-pcie-phy this is updated phy module and dtb overlay for switch to it (I just changed name). This is just proof of concept. patch attached (tested on edge kernel) phy-rockchip-pcie.patch
  3. Yes, I tested with latest u-boot on Cubieboard-1 and Cubietruck (A20). Two my cubietruck boards have bad flash chips, but I replaced it by another one from old USB flash dongle. After this all works fine.
  4. Hi This is my patches for using NAND + UBI + UBIFS with legacy kernel and latest u-boot Tested on Cubieboard-1 and Cubietruck. U-Boot: - read-only support for now - i.e. all write/erase ops are locked Kernel: - pooling events - need to convert to interrupts+completions ToDo: - make led support NAND layout - driver will create two MTD partitions: mtd0 - with name "SPL" - 1024K rounded up to eraseblock size. mtd1 - with name "UBI" - all other space excluding last 4 erseblocks - for bad block table. For using with u-boot need to create ubi volume named "boot" with id=0. This volume must contain /boot/* files. For other files I use in tests all free space with volume name "root" and id=1 but this is not critical. I used this as module and include in ramdisk - add to /etc/initramfs-tools/modules next lines: sunxi_nand ubi mtd=1 <- this is which mtd attach at boot ubifs In /boot/boot.cmd should be changed: in bootargs: root=ubi0:root rootwait rootfstype=ubifs boot images: ubifsload ${fdt_addr_r} script.bin ubifsload ${ramdisk_addr_r} uInitrd || setenv ramdisk_addr_r "-" ubifsload ${kernel_addr_r} zImage in /etc/fstab ubi0:root / ubifs defaults,noatime 0 0 ubi0:boot /boot ubifs defaults,noatime 0 0 Kernel configuration: CONFIG_MTD=m CONFIG_MTD_CHAR=m CONFIG_MTD_NAND_IDS=m CONFIG_MTD_NAND_ECC=m CONFIG_MTD_NAND=m CONFIG_MTD_NAND_SUNXI_NAND=m CONFIG_MTD_UBI=m CONFIG_MTD_UBI_WL_THRESHOLD=256 <- for MLC NAND CONFIG_MTD_UBI_BEB_RESERVE=1 In U-Boot config only need to set CONFIG_NAND_SUNXI_ALT=y All other things (MTD, UBI, UBIFS) will be included automatically. PS Sorry for my English kernel-nand.patch.gz uboot-nand.patch.gz
  5. Hi Helmi This is a NAND driver https://github.com/andrewz1/sunxi-nand for legacy kernel. You may try this one
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines