inindev / nanopc-t6

debian arm64 linux for the nanopc-t6
GNU General Public License v3.0
19 stars 3 forks source link

[Feature request] NanoPC T6 - bulleyes img file #2

Closed jackpassgfw closed 11 months ago

jackpassgfw commented 1 year ago

Could you build a Debian bullseye ARM64 Linux img file for the FriendlyElec NanoPC-T6? Thank you.

inindev commented 1 year ago

Debian version 11 bullseye? Do you mean version 12 bookworm?

jackpassgfw commented 1 year ago

I mean Debian version 11 Bullseye.

inindev commented 1 year ago

can you test this? https://drive.google.com/file/d/1AHBa7B7l-LHtodPmctbylgQWRpO_-qAF/view?usp=sharing sha256: e4fee6529c71d31149e95f3c4e4cd17660aaf7264654fbb504c6ebbe307d7c84

jackpassgfw commented 1 year ago

It seems working, but I can't log in, I tried user: debian, password: debian, it did work.

jackpassgfw commented 1 year ago

My mistake, it works perfect. Thank you very much.

jackpassgfw commented 1 year ago

Do you have one supporting monitor? this one can be used over ssh only.

inindev commented 1 year ago

Mainline graphics support for the rk3588 remains a work in progress:

https://gitlab.collabora.com/hardware-enablement/rockchip-3588/notes-for-rockchip-3588/-/blob/main/mainline-status.md

https://lore.kernel.org/all/20230809165330.2451699-1-boris.brezillon@collabora.com

vladkozlov69 commented 1 year ago

Hi @inindev , I downloaded this bullseye image but looks like it does not boot and trixie image does not boot too. On my NanoPC-T6 I have an SSD with Ubuntu, a Intel AX210 card, and my EMMC has bootloader from another project (https://github.com/Joshua-Riek/ubuntu-rockchip). The SD card with ubuntu boots fine, but when I try your images then SYS led is constantly ON (not blinking) and no activity occurs on Ethernet port. I tried to start board in MaskROM mode but result is still the same.

Could it be conflict with installed hardware (SSD, AX210) or EMMC bootloader prevents start even in maskrom mode?

jackpassgfw commented 1 year ago

Hi @vladkozlov69 , Just read through this thread(https://github.com/Joshua-Riek/ubuntu-rockchip/issues/223), then you can fix the problem.

vladkozlov69 commented 1 year ago

Hi @jackpassgfw 2a5c2f94f6ab96d3299885f65c14c5ce My board does not have SPI Flash soldered and uBoot lives in EMMC- thus I still have no idea why it refuses to boot those images from SD in MaskROM mode.

jackpassgfw commented 1 year ago

My board has SPI Flash, it works fine with Bullseye.

inindev commented 1 year ago

I have tested both the emmc and spi variants of the nanopc-t6 and both do boot with the patched u-boot in this repo. https://www.friendlyelec.com/index.php?route=product/product&product_id=292

I do not recall which board and under which conditions, but whenever I have trouble getting the maskrom to bypass the internal emmc, I just erase the internal emmc using sudo dd if=/dev/zero of=/dev/mmcblkX bs=1M count=1024

The internal emmc is easy to spot as it has the /dev/mmcblkXboot0 and /dev/mmcblkXboot1 entries.

As a side-note, the goal of what I am doing here is to boot and use these devices with all main-line code. The current state of mainline rk3588 is broken in quite a few areas.

inindev commented 1 year ago

My mistake, it works perfect. Thank you very much.

I published it to the release images: https://github.com/inindev/nanopc-t6/releases/tag/v11-6.5.5

jackpassgfw commented 1 year ago

Thank you. By the way, How to make an image file?

inindev commented 1 year ago

Thank you. By the way, How to make an image file?

on a Linux ARM64 device: git clone https://github.com/inindev/nanopc-t6.git

to build everything from the project root (specify any text after package-): screen make package-v12-6.5.5

to make kernel: screen sh kernel/make_kernel.sh

to make dtb: sh dtb/make_dtb.sh

to make u-boot: sh uboot/make_uboot.sh

vladkozlov69 commented 1 year ago

whenever I have trouble getting the maskrom to bypass the internal emmc, I just erase the internal emmc

Yes, it did the trick. Looks like maskrom issue.