Code: Select all
Bus 001 Device 005: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port / Mobile Action MA-8910PCode: Select all
Bus 001 Device 005: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port / Mobile Action MA-8910PIndeed, pl2303 use FTDI. so you are OK at your PC end.jyoung wrote:Okay, lsusb give me:
Code: Select all
Bus 001 Device 005: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port / Mobile Action MA-8910P

I think in previous post we already did some loop back test and proven it did work. The reason I ask to check driver on PC is just in case wrong driver somehow magically worked in loop back mode.NeddySeagoon wrote:pingtoo,
Don't we need the loopback test first?
If the PC cannot talk to itself, it probably can't talk to anything else either.

Code: Select all
CONFIG_USB_SERIAL_PL2303: USB Prolific 2303 Single Port Serial Driver Neddy, I am not sure I understand you. Are you confused if the CONFIG_USB_SERIAL_PL2303 is the right driver? or why it isn't working?NeddySeagoon wrote:pingtoo,
I'm confused too.is the driver for a PL2303 Serial PortCode: Select all
CONFIG_USB_SERIAL_PL2303: USB Prolific 2303 Single Port Serial Driver
Code: Select all
lsusbCode: Select all
Bus 001 Device 003: ID 413c:2113 Dell Computer Corp. KB216 Wired Keyboard
Bus 001 Device 005: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port / Mobile Action MA-8910P
Bus 001 Device 004: ID 046d:c52f Logitech, Inc. Unifying Receiver
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 002: ID 152d:0567 JMicron Technology Corp. / JMicron USA Technology Corp. JMS567 SATA 6Gb/s bridge
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
The Vendor and Device IDs are supposed to uniquely identify your device.Bus 001 Device 005: ID 067b:2303
I think this is actually u-boot function. One of u-boot automate boot feature use extlinux menu to execute boot command sequence.jyoung wrote:Relating back to the boot loader, I the armbian image has a folder /boot/extlinux containing extlinux.conf. I think it's using extlinux instead of u-boot, which I'm reading is a variant of syslinux:
https://wiki.gentoo.org/wiki/Syslinux

Code: Select all
minicom -D /dev/ttyUSB0
Code: Select all
$ ls /dev/ttyUS* -l
crw-rw---- 1 root uucp 188, 0 Nov 4 2021 /dev/ttyUSB0I wonder if it came from u-boot. I seen u-boot source code do MAC setup. however I don't know specific for your board.jyoung wrote:However, now that I have gentoo running on the quartz64a board, am I seeing a very strange issue: every time it reboot, it has a different mac address. I'm not sure how that's even possible. While that would be really cool if I was hacker, it's kind of a problem for daily use. Does anyone know what might be causing it, or how to stop the mac address from changing?
Code: Select all
label Armbian
kernel /boot/Image
initrd /boot/initramfs-6.4.8-gentoo.img
fdt /boot/dtb/rockchip/rk3566-quartz64-a.dtb
append root=/dev/mmcblk1p2 console=ttyS02,1500000 console=tty0 rw no_console_suspend consoleblank=0 fsck.fix=yes fsck.repair=yes net.ifnames=0 splash plymouth.ignore-serial-consoles
Code: Select all
minicom -D /dev/ttyUSB0 -b 115200According to u-boot's DTS for your board it should be 1500000n8(or 1500000 is enough) not 115200.jyoung wrote:Weird, I'm still getting a random string of code from uart. The procedure I'm using is to start minicom with
Then, I turn off hardware flow control in the menu, and power up the device. I've tried switching the RX/TX pins too. When I switch them, I get nothing (which I think is expected). The 115200 is the speed that minicom inside the quartz64a board gives me for /dev/ttyS0 and /dev/ttyS2.Code: Select all
minicom -D /dev/ttyUSB0 -b 115200
However, I do not actually think that u-boot is the cause of the changing mac address. When I boot into armbian, the mac address is fixed. The gentoo image is using exactly the same bootloader as armbian, since I created the gentoo image by cloning the armbian image and then modifying the kernel and the extlinux.conf, but I did not alter the bootloader.
Instead, I think that there's something about the gentoo install that's causing the mac address to change.
I don't know much about "minicom" so I don't know if there thing need to be configure in order to get it right.jyoung wrote:I also tried 1500000, and I still just got random code.
Code: Select all
screen /dev/ttyUSB0 1500000If you just want to use gentoo to make it stick, If you are using netifrc (I am guessing you are) just modify/create /etc/conf.d/net and addjyoung wrote:This tutorial on how to change a mac address suggests that in gentoo one could edit /etc/conf.d/net
https://en.wikibooks.org/wiki/Hacking/T ... ress/Linux
That file does not exist on the quartz64a board, but I could create it and make the changes. It's still really weird that the mac address would change randomly on each reboot. I've found several threads about this, but in each case the cause was always networkmanager, which is not installed on the quartz64a.
Code: Select all
mac_eth0="00:11:22:33:44:55"Code: Select all
label Armbian
kernel /boot/Image
initrd /boot/uInitrd
fdt /boot/dtb/rockchip/rk3566-quartz64-a.dtb
append root=UUID=7f9c9970-93ba-46ca-9f03-f3241712ead8 console=ttyS02,1500000 console=tty0 rw no_console_suspend consoleblank=0 fsck.fix=yes fsck.repair=yes net.ifnames=0 splash plymouth.ignore-serial-consolesCode: Select all
make && make modules_install
/usr/src/linux/arch/arm64/boot/Image to /boot/boot/ImageCode: Select all
dracut --kver 6.4.8-gentoo