Recently I used
flex-builder -i mkrfs -r buildroot:tiny -a arm32 # generate arm32 little-endian rootfs as per qoriq_arm64_devel_defconfig
to generate a rootfs then after I use make ARCH=arm menuconfig to get every modules compiled
then I loaded into the linux but I found out that there is no /boot directory for me to configure the device tree file in order to make the usb3.0 works as serial gadget.
So once I loaded modprobe g_serial
it thrown me error [ 0.200027] dwc3 3100000.usb3: Failed to get clk 'ref': -2
Can anyone help?
Hello Elias Bitbaker,
Please run "flex-builder -i merge-component -a arm32" to merge kernel modules into target userland.
Would you please provide your console log of inserting these Kernel modules?
(1) I tried your command then I got this
I do not know what this command use for if you can tell me a bit more
(2) this is my console log:
if you see Failed to get clk ref:-2 because I need to change this in the ls1021atwr.dtb file?
but I do not have the /boot directory when I use flex-builder -i mkrfs -r buildroot:tiny -a arm32 I manually created the folder then copied and pasted the dtb file into it but it did not work
How to add modprobe g_serial upon start up since I do not have /etc/modules file
Please refer to the following procedure
Update kernel menuconfig
Device Tree update, change property dr_mode’s data from “host” to “peripheral”, add property maximum-speed = “super-speed”; as below
Build whole Linux kernel, below KO will be compiled:
LD [M] drivers/usb/gadget/function/usb_f_acm.ko
LD [M] drivers/usb/gadget/function/u_serial.ko
LD [M] drivers/usb/gadget/function/usb_f_obex.ko
LD [M] drivers/usb/gadget/function/usb_f_serial.ko
LD [M] drivers/usb/gadget/legacy/g_serial.ko
Insmod ko on Layerscape board console