Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

automatic generation of SD card and flash image - console over ttyACM0 #74

Closed
Majdoddin opened this issue Aug 15, 2016 · 6 comments
Closed

Comments

@Majdoddin
Copy link

Hello,
I am writing mostly with regard to issue #65, which is closed now.
Will you please apply the changes to the board SAMA5D3 Xplained? (sama5d3-xplained.conf and sama5d3-xplained-sd.conf)
Specially it would be very nice if the flash and SD card images are generated automatically.

Moreover, I want to configure my system for this board, such that the console operates over the USB port (named USB-A, J6 on the board) and I see it on my computer as /dev/ttyACM0. That is how the factory image on the board does, and also the demo images do it that way (see here) . But I do not know how to do it using Yocto, or when I build the kernel myself. It would be great if that (with other console settings like baudrate) is added as an option in the config files.
Thanks

@alexandrebelloni
Copy link
Contributor

#75 should properly generate sd card images for sama5d3 xplained

Regarding getting the console on ttyGS0 (that is the name on the xplained side), it is already an option that is present in sama5d3-xplained-sd.conf:

SERIAL_CONSOLES ?= "115200;ttyS0 115200;ttyGS0"

There is nothing more we can do.

The relevant kernel configuration is:

CONFIG_USB_GADGET=y
CONFIG_USB_ATMEL_USBA=m
CONFIG_USB_CONFIGFS=m
CONFIG_USB_CONFIGFS_ACM=y
CONFIG_USB_CONFIGFS_MASS_STORAGE=y
CONFIG_USB_MASS_STORAGE=m
CONFIG_USB_G_SERIAL=m

@Majdoddin
Copy link
Author

Thank you very much for #75 (Is it also possible to generate image for the flash?).

Regarding the console, something is still missing:
Using the Demo image, when USB cable is plugged (port USB-A, J6), I got /dev/ttyACM0 on my computer (/dev/ttyGS0 on board side) which I can use with my terminal software to connect to the board console. And if also a USB to TTL serial cable is pluged (port J23), I also got /dev/ttyUSB0 on my computer (/dev/ttyS0 on board side) which I can use the same way.
But if I build with Yocto and meta-atmel, I get nothing with the USB cable. Only with the USB to TTL cable I have access to console.
dmesg of my computer with Demo image on board:

...
[736608.804874] usb 5-2: new high-speed USB device number 34 using ehci-pci
[736608.937474] usb 5-2: New USB device found, idVendor=03eb, idProduct=6124
[736608.937482] usb 5-2: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[736608.937931] cdc_acm 5-2:1.0: This device cannot do calls on its own. It is not a modem.

[736608.938052] cdc_acm 5-2:1.0: ttyACM0: USB ACM device
...
[777949.178538] usbcore: registered new interface driver ftdi_sio
[777949.178594] usbserial: USB Serial support registered for FTDI USB Serial Device
[777949.179009] ftdi_sio 7-1:1.0: FTDI USB Serial Device converter detected
[777949.179140] usb 7-1: Detected FT232RL
[777949.179145] usb 7-1: Number of endpoints 2
[777949.179150] usb 7-1: Endpoint 1 MaxPacketSize 64
[777949.179155] usb 7-1: Endpoint 2 MaxPacketSize 64
[777949.179159] usb 7-1: Setting MaxPacketSize 64
[777949.182169] usb 7-1: FTDI USB Serial Device converter now attached to ttyUSB0
[778677.926385] usb 7-1: USB disconnect, device number 2
[778677.926666] ftdi_sio ttyUSB0: FTDI USB Serial Device converter now disconnected from ttyUSB0
...

I also add the dmesg of linux on the board in both cases for comparision.
The dmesgof Demo linux on board (the last part starting with tag [ 3.960000] , is udev that set ups g_serial gadget and seems important):

[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.1.0-linux4sam_5.3 (ldesroches@ibiza) (gcc version 5.2.0 (GCC) ) #1 Sat Apr 16 11:28:00 CEST 2016
[ 0.000000] CPU: ARMv7 Processor [410fc051] revision 1 (ARMv7), cr=10c53c7d
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] Machine model: SAMA5D3 Xplained
[ 0.000000] cma: Reserved 64 MiB at 0x28000000
[ 0.000000] Memory policy: Data cache writeback
[ 0.000000] On node 0 totalpages: 65536
[ 0.000000] free_area_init_node: node 0, pgdat c06e20c4, node_mem_map cfdda000
[ 0.000000] Normal zone: 512 pages used for memmap
[ 0.000000] Normal zone: 0 pages reserved
[ 0.000000] Normal zone: 65536 pages, LIFO batch:15
[ 0.000000] CPU: All CPU(s) started in SVC mode.
[ 0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[ 0.000000] pcpu-alloc: [0] 0
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping off. Total pages: 65024
[ 0.000000] Kernel command line: console=ttyS0,115200 root=/dev/mmcblk0p2 rw rootfstype=ext4 rootwait
[ 0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
[ 0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
[ 0.000000] Memory: 186828K/262144K available (4985K kernel code, 179K rwdata, 1664K rodata, 188K init, 159K bss, 9780K reserved, 65536K cma-reserved)
[ 0.000000] Virtual kernel memory layout:
vector : 0xffff0000 - 0xffff1000 ( 4 kB)
fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
vmalloc : 0xd0800000 - 0xff000000 ( 744 MB)
lowmem : 0xc0000000 - 0xd0000000 ( 256 MB)
modules : 0xbf000000 - 0xc0000000 ( 16 MB)
.text : 0xc0008000 - 0xc0686928 (6651 kB)
.init : 0xc0687000 - 0xc06b6000 ( 188 kB)
.data : 0xc06b6000 - 0xc06e2ed8 ( 180 kB)
.bss : 0xc06e2ed8 - 0xc070ad3c ( 160 kB)
[ 0.000000] NR_IRQS:16 nr_irqs:16 16
[ 0.000000] clocksource pit: mask: 0xfffffff max_cycles: 0xfffffff, max_idle_ns: 14479245754 ns
[ 0.000000] sched_clock: 32 bits at 100 Hz, resolution 10000000ns, wraps every 21474836475000000ns
[ 0.000000] Console: colour dummy device 80x30
[ 0.050000] Calibrating delay loop... 351.43 BogoMIPS (lpj=1757184)
[ 0.060000] pid_max: default: 32768 minimum: 301
[ 0.060000] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.060000] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.060000] CPU: Testing write buffer coherency: ok
[ 0.060000] Setting up static identity map for 0x20008200 - 0x20008258
[ 0.060000] devtmpfs: initialized
[ 0.070000] VFP support v0.3: implementor 41 architecture 2 part 30 variant 5 rev 1
[ 0.070000] clocksource jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.080000] pinctrl core: initialized pinctrl subsystem
[ 0.080000] NET: Registered protocol family 16
[ 0.110000] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.110000] cpuidle: using governor ladder
[ 0.110000] cpuidle: using governor menu
[ 0.110000] AT91: Detected SoC family: sama5d3
[ 0.110000] AT91: Detected SoC: sama5d36, revision 2
[ 0.130000] gpio-at91 fffff200.gpio: at address d0818200
[ 0.130000] gpio-at91 fffff400.gpio: at address d081a400
[ 0.130000] gpio-at91 fffff600.gpio: at address d081c600
[ 0.130000] gpio-at91 fffff800.gpio: at address d081e800
[ 0.130000] gpio-at91 fffffa00.gpio: at address d0820a00
[ 0.140000] pinctrl-at91 ahb:apb:pinctrl@fffff200: initialized AT91 pinctrl driver
[ 0.140000] tcb_clksrc: tc0 at 16.000 MHz
[ 0.140000] clocksource tcb_clksrc: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 115833966437 ns
[ 1.380000] at_hdmac ffffe600.dma-controller: Atmel AHB DMA Controller ( cpy set slave sg-cpy ), 8 channels
[ 1.380000] at_hdmac ffffe800.dma-controller: Atmel AHB DMA Controller ( cpy set slave sg-cpy ), 8 channels
[ 1.390000] SCSI subsystem initialized
[ 1.390000] usbcore: registered new interface driver usbfs
[ 1.390000] usbcore: registered new interface driver hub
[ 1.390000] usbcore: registered new device driver usb
[ 1.400000] at91_i2c f0014000.i2c: using dma0chan0 (tx) and dma0chan1 (rx) for DMA transfers
[ 1.400000] at91_i2c f0014000.i2c: AT91 i2c bus driver (hw version: 0x402).
[ 1.400000] at91_i2c f0018000.i2c: using dma0chan2 (tx) and dma0chan3 (rx) for DMA transfers
[ 1.400000] at91_i2c f0018000.i2c: AT91 i2c bus driver (hw version: 0x402).
[ 1.400000] at91_i2c f801c000.i2c: can't use DMA, error -19
[ 1.400000] at91_i2c f801c000.i2c: AT91 i2c bus driver (hw version: 0x402).
[ 1.400000] media: Linux media interface: v0.10
[ 1.400000] Linux video capture interface: v2.00
[ 1.400000] Advanced Linux Sound Architecture Driver Initialized.
[ 1.410000] Switched to clocksource tcb_clksrc
[ 1.450000] NET: Registered protocol family 2
[ 1.450000] TCP established hash table entries: 2048 (order: 1, 8192 bytes)
[ 1.450000] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[ 1.450000] TCP: Hash tables configured (established 2048 bind 2048)
[ 1.450000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 1.450000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 1.450000] NET: Registered protocol family 1
[ 1.450000] RPC: Registered named UNIX socket transport module.
[ 1.450000] RPC: Registered udp transport module.
[ 1.450000] RPC: Registered tcp transport module.
[ 1.450000] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 1.460000] futex hash table entries: 256 (order: -1, 3072 bytes)
[ 1.470000] io scheduler noop registered (default)
[ 1.480000] f001c000.serial: ttyS1 at MMIO 0xf001c000 (irq = 30, base_baud = 4125000) is a ATMEL_SERIAL
[ 1.480000] f0020000.serial: ttyS2 at MMIO 0xf0020000 (irq = 31, base_baud = 4125000) is a ATMEL_SERIAL
[ 1.480000] f0024000.serial: ttyS5 at MMIO 0xf0024000 (irq = 32, base_baud = 4125000) is a ATMEL_SERIAL
[ 1.490000] ffffee00.serial: ttyS0 at MMIO 0xffffee00 (irq = 43, base_baud = 8250000) is a ATMEL_SERIAL
[ 1.860000] console [ttyS0] enabled
[ 1.870000] [drm] Initialized drm 1.1.0 20060810
[ 1.880000] brd: module loaded
[ 1.900000] loop: module loaded
[ 1.900000] atmel_nand_nfc 70000000.nfc: NFC is probed.
[ 1.910000] atmel_nand 60000000.nand: Use On Flash BBT
[ 1.910000] atmel_nand 60000000.nand: Using dma0chan4 for DMA transfers.
[ 2.030000] atmel_nand 60000000.nand: Time out to wait status ready!
[ 2.030000] nand: No NAND device found
[ 2.030000] atmel_spi f0004000.spi: version: 0x213
[ 2.040000] atmel_spi f0004000.spi: Using dma0chan4 (tx) and dma0chan5 (rx) for DMA transfers
[ 2.050000] atmel_spi f0004000.spi: Atmel SPI Controller at 0xf0004000 (irq 26)
[ 2.050000] atmel_spi f8008000.spi: version: 0x213
[ 2.060000] atmel_spi f8008000.spi: Using dma1chan0 (tx) and dma1chan1 (rx) for DMA transfers
[ 2.060000] atmel_spi f8008000.spi: Atmel SPI Controller at 0xf8008000 (irq 35)
[ 2.070000] CAN device driver interface
[ 2.080000] at91_can f000c000.can: device registered (reg_base=d0892000, irq=49)
[ 2.080000] macb f0028000.ethernet: invalid hw address, using random
[ 2.090000] libphy: MACB_mii_bus: probed
[ 2.180000] macb f0028000.ethernet eth0: Cadence GEM rev 0x00020119 at 0xf0028000 irq 50 (aa:b4:56:50:dc:a3)
[ 2.180000] macb f0028000.ethernet eth0: attached PHY driver [Micrel KSZ9031 Gigabit PHY](mii_bus:phy_addr=f0028000.etherne:07, irq=-1)
[ 2.200000] macb f802c000.ethernet: invalid hw address, using random
[ 2.200000] libphy: MACB_mii_bus: probed
[ 2.290000] macb f802c000.ethernet eth1: Cadence MACB rev 0x0001010c at 0xf802c000 irq 51 (1a:0a:b9:23:73:c8)
[ 2.290000] macb f802c000.ethernet eth1: attached PHY driver [Micrel KSZ8081 or KSZ8091](mii_bus:phy_addr=f802c000.etherne:01, irq=-1)
[ 2.310000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 2.310000] ehci-atmel: EHCI Atmel driver
[ 2.320000] atmel-ehci 700000.ehci: EHCI Host Controller
[ 2.320000] atmel-ehci 700000.ehci: new USB bus registered, assigned bus number 1
[ 2.330000] atmel-ehci 700000.ehci: irq 54, io mem 0x00700000
[ 2.350000] atmel-ehci 700000.ehci: USB 2.0 started, EHCI 1.00
[ 2.350000] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[ 2.360000] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 2.360000] usb usb1: Product: EHCI Host Controller
[ 2.360000] usb usb1: Manufacturer: Linux 4.1.0-linux4sam_5.3 ehci_hcd
[ 2.370000] usb usb1: SerialNumber: 700000.ehci
[ 2.370000] hub 1-0:1.0: USB hub found
[ 2.380000] hub 1-0:1.0: 3 ports detected
[ 2.380000] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 2.390000] ohci-atmel: OHCI Atmel driver
[ 2.390000] at91_ohci 600000.ohci: USB Host Controller
[ 2.390000] at91_ohci 600000.ohci: new USB bus registered, assigned bus number 2
[ 2.400000] at91_ohci 600000.ohci: irq 54, io mem 0x00600000
[ 2.460000] usb usb2: New USB device found, idVendor=1d6b, idProduct=0001
[ 2.460000] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 2.470000] usb usb2: Product: USB Host Controller
[ 2.470000] usb usb2: Manufacturer: Linux 4.1.0-linux4sam_5.3 ohci_hcd
[ 2.480000] usb usb2: SerialNumber: at91
[ 2.480000] hub 2-0:1.0: USB hub found
[ 2.490000] hub 2-0:1.0: 3 ports detected
[ 2.490000] usbcore: registered new interface driver cdc_acm
[ 2.500000] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
[ 2.500000] usbcore: registered new interface driver usb-storage
[ 2.510000] usbcore: registered new interface driver usbserial
[ 2.510000] usbcore: registered new interface driver usbserial_generic
[ 2.520000] usbserial: USB Serial support registered for generic
[ 2.520000] usbcore: registered new interface driver ftdi_sio
[ 2.530000] usbserial: USB Serial support registered for FTDI USB Serial Device
[ 2.530000] usbcore: registered new interface driver pl2303
[ 2.540000] usbserial: USB Serial support registered for pl2303
[ 2.540000] rtc rtc0: alarm rollover not handled
[ 2.550000] rtc rtc0: invalid alarm value: 1900-1-1 0:0:0
[ 2.550000] at91_rtc fffffeb0.rtc: rtc core: registered fffffeb0.rtc as rtc0
[ 2.560000] at91_rtc fffffeb0.rtc: AT91 Real Time Clock driver.
[ 2.560000] i2c /dev entries driver
[ 2.570000] AT91: Starting after user reset
[ 2.570000] sdhci: Secure Digital Host Controller Interface driver
[ 2.580000] sdhci: Copyright(c) Pierre Ossman
[ 2.580000] atmel_mci f0000000.mmc: version: 0x505
[ 2.590000] atmel_mci f0000000.mmc: using dma0chan6 for DMA transfers
[ 2.630000] atmel_mci f0000000.mmc: Atmel MCI controller at 0xf0000000 irq 25, 1 slots
[ 2.630000] atmel_mci f8000000.mmc: version: 0x505
[ 2.640000] atmel_mci f8000000.mmc: using dma1chan2 for DMA transfers
[ 2.670000] mmc0: host does not support reading read-only switch, assuming write-enable
[ 2.680000] atmel_mci f8000000.mmc: Atmel MCI controller at 0xf8000000 irq 34, 1 slots
[ 2.690000] sdhci-pltfm: SDHCI platform and OF driver helper
[ 2.690000] ledtrig-cpu: registered to indicate activity on CPUs
[ 2.700000] atmel_aes f8038000.aes: version: 0x135
[ 2.700000] mmc0: new high speed SDHC card at address 0007
[ 2.710000] mmcblk0: mmc0:0007 SD16G 14.4 GiB
[ 2.710000] mmcblk0: p1 p2
[ 2.720000] atmel_aes f8038000.aes: Atmel AES - Using dma1chan3, dma1chan4 for DMA transfers
[ 2.730000] atmel_sha f8034000.sha: version: 0x410
[ 2.730000] atmel_sha f8034000.sha: using dma1chan5 for DMA transfers
[ 2.740000] atmel_sha f8034000.sha: Atmel SHA1/SHA256/SHA224/SHA384/SHA512
[ 2.740000] atmel_tdes f803c000.tdes: version: 0x701
[ 2.750000] atmel_tdes f803c000.tdes: using dma1chan6, dma1chan7 for DMA transfers
[ 2.760000] atmel_tdes f803c000.tdes: Atmel DES/TDES
[ 2.760000] usbcore: registered new interface driver usbhid
[ 2.760000] usbhid: USB HID core driver
[ 2.770000] iio iio:device0: Resolution used: 12 bits
[ 2.770000] iio iio:device0: ADC Touch screen is disabled.
[ 2.790000] NET: Registered protocol family 17
[ 2.790000] can: controller area network core (rev 20120528 abi 9)
[ 2.790000] NET: Registered protocol family 29
[ 2.800000] can: raw protocol (rev 20120528)
[ 2.800000] can: broadcast manager protocol (rev 20120528 t)
[ 2.800000] can: netlink gateway (rev 20130117) max_hops=1
[ 2.820000] input: gpio_keys as /devices/soc0/gpio_keys/input/input0
[ 2.820000] at91_rtc fffffeb0.rtc: setting system clock to 2016-08-16 07:45:21 UTC (1471333521)
[ 2.830000] ALSA device list:
[ 2.840000] No soundcards found.
[ 2.930000] EXT4-fs (mmcblk0p2): recovery complete
[ 2.940000] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[ 2.950000] VFS: Mounted root (ext4 filesystem) on device 179:2.
[ 2.960000] devtmpfs: mounted
[ 2.960000] Freeing unused kernel memory: 188K (c0687000 - c06b6000)
[ 3.960000] udevd[650]: starting version 182
[ 4.220000] atmel_usba_udc 500000.gadget: MMIO registers at 0xf8030000 mapped at d0910000
[ 4.230000] atmel_usba_udc 500000.gadget: FIFO at 0x00500000 mapped at d2200000
[ 5.380000] g_serial gadget: Gadget Serial v2.4
[ 5.380000] g_serial gadget: g_serial ready
[ 5.480000] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[ 5.740000] random: dd urandom read with 75 bits of entropy available
[ 5.760000] g_serial gadget: high-speed config #2: CDC ACM config
[ 18.920000] random: nonblocking pool is initialized

and the dmesg of the linux on board that I built with Yocto and meta-amel (notice that the part at the end, udev does not set up the g_serial gadget ):

Booting Linux on physical CPU 0x0
Linux version 4.1.0-linux4sam_5.3-00053-gaa504b4 (rooholah@Labor2-PC) (gcc version 6.1.1 20160511 (GCC) ) #2 Thu Aug 11 12:16:19 CEST 2016
CPU: ARMv7 Processor [410fc051] revision 1 (ARMv7), cr=10c53c7d
CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
Machine model: SAMA5D3 Xplained
cma: Reserved 64 MiB at 0x28000000
Memory policy: Data cache writeback
On node 0 totalpages: 65536
free_area_init_node: node 0, pgdat c06e40a4, node_mem_map cfdda000
Normal zone: 512 pages used for memmap
Normal zone: 0 pages reserved
Normal zone: 65536 pages, LIFO batch:15
CPU: All CPU(s) started in SVC mode.
pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
pcpu-alloc: [0] 0
Built 1 zonelists in Zone order, mobility grouping off. Total pages: 65024
Kernel command line: console=ttyS0,115200 earlyprintk root=/dev/mmcblk0p2 rw rootwait
PID hash table entries: 1024 (order: 0, 4096 bytes)
Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
Memory: 186820K/262144K available (4986K kernel code, 179K rwdata, 1668K rodata, 192K init, 159K bss, 9788K reserved, 65536K cma-reserved)
Virtual kernel memory layout:
vector : 0xffff0000 - 0xffff1000 ( 4 kB)
fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
vmalloc : 0xd0800000 - 0xff000000 ( 744 MB)
lowmem : 0xc0000000 - 0xd0000000 ( 256 MB)
modules : 0xbf000000 - 0xc0000000 ( 16 MB)
.text : 0xc0008000 - 0xc0687b78 (6655 kB)
.init : 0xc0688000 - 0xc06b8000 ( 192 kB)
.data : 0xc06b8000 - 0xc06e4eb8 ( 180 kB)
.bss : 0xc06e4eb8 - 0xc070ccbc ( 160 kB)
NR_IRQS:16 nr_irqs:16 16
clocksource pit: mask: 0xfffffff max_cycles: 0xfffffff, max_idle_ns: 14479245754 ns
sched_clock: 32 bits at 100 Hz, resolution 10000000ns, wraps every 21474836475000000ns
Console: colour dummy device 80x30
Calibrating delay loop... 351.43 BogoMIPS (lpj=1757184)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
CPU: Testing write buffer coherency: ok
Setting up static identity map for 0x20008200 - 0x20008258
devtmpfs: initialized
VFP support v0.3: implementor 41 architecture 2 part 30 variant 5 rev 1
clocksource jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
pinctrl core: initialized pinctrl subsystem
NET: Registered protocol family 16
DMA: preallocated 256 KiB pool for atomic coherent allocations
cpuidle: using governor ladder
cpuidle: using governor menu
AT91: Detected SoC family: sama5d3
AT91: Detected SoC: sama5d36, revision 2
gpio-at91 fffff200.gpio: at address d0818200
gpio-at91 fffff400.gpio: at address d081a400
gpio-at91 fffff600.gpio: at address d081c600
gpio-at91 fffff800.gpio: at address d081e800
gpio-at91 fffffa00.gpio: at address d0820a00
pinctrl-at91 ahb:apb:pinctrl@fffff200: initialized AT91 pinctrl driver
tcb_clksrc: tc0 at 16.000 MHz
clocksource tcb_clksrc: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 115833966437 ns
at_hdmac ffffe600.dma-controller: Atmel AHB DMA Controller ( cpy set slave sg-cpy ), 8 channels
at_hdmac ffffe800.dma-controller: Atmel AHB DMA Controller ( cpy set slave sg-cpy ), 8 channels
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
at91_i2c f0014000.i2c: using dma0chan0 (tx) and dma0chan1 (rx) for DMA transfers
at91_i2c f0014000.i2c: AT91 i2c bus driver (hw version: 0x402).
at91_i2c f0018000.i2c: using dma0chan2 (tx) and dma0chan3 (rx) for DMA transfers
at91_i2c f0018000.i2c: AT91 i2c bus driver (hw version: 0x402).
at91_i2c f801c000.i2c: can't use DMA, error -19
at91_i2c f801c000.i2c: AT91 i2c bus driver (hw version: 0x402).
media: Linux media interface: v0.10
Linux video capture interface: v2.00
Advanced Linux Sound Architecture Driver Initialized.
Switched to clocksource tcb_clksrc
NET: Registered protocol family 2
TCP established hash table entries: 2048 (order: 1, 8192 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
UDP hash table entries: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
NET: Registered protocol family 1
RPC: Registered named UNIX socket transport module.
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
futex hash table entries: 256 (order: -1, 3072 bytes)
io scheduler noop registered (default)
f001c000.serial: ttyS1 at MMIO 0xf001c000 (irq = 30, base_baud = 4125000) is a ATMEL_SERIAL
f0020000.serial: ttyS2 at MMIO 0xf0020000 (irq = 31, base_baud = 4125000) is a ATMEL_SERIAL
f0024000.serial: ttyS5 at MMIO 0xf0024000 (irq = 32, base_baud = 4125000) is a ATMEL_SERIAL
ffffee00.serial: ttyS0 at MMIO 0xffffee00 (irq = 44, base_baud = 8250000) is a ATMEL_SERIAL
console [ttyS0] enabled
[drm] Initialized drm 1.1.0 20060810
brd: module loaded
loop: module loaded
atmel_nand_nfc 70000000.nfc: NFC is probed.
atmel_nand 60000000.nand: Use On Flash BBT
atmel_nand 60000000.nand: Using dma0chan4 for DMA transfers.
atmel_nand 60000000.nand: Time out to wait status ready!
nand: No NAND device found
atmel_spi f0004000.spi: version: 0x213
atmel_spi f0004000.spi: Using dma0chan4 (tx) and dma0chan5 (rx) for DMA transfers
atmel_spi f0004000.spi: Atmel SPI Controller at 0xf0004000 (irq 26)
atmel_spi f8008000.spi: version: 0x213
atmel_spi f8008000.spi: Using dma1chan0 (tx) and dma1chan1 (rx) for DMA transfers
atmel_spi f8008000.spi: Atmel SPI Controller at 0xf8008000 (irq 35)
CAN device driver interface
at91_can f000c000.can: device registered (reg_base=d0894000, irq=50)
macb f0028000.ethernet: invalid hw address, using random
libphy: MACB_mii_bus: probed
macb f0028000.ethernet eth0: Cadence GEM rev 0x00020119 at 0xf0028000 irq 51 (f2:9d:83:80:ea:a4)
macb f0028000.ethernet eth0: attached PHY driver [Micrel KSZ9031 Gigabit PHY](mii_bus:phy_addr=f0028000.etherne:07, irq=-1)
macb f802c000.ethernet: invalid hw address, using random
libphy: MACB_mii_bus: probed
macb f802c000.ethernet eth1: Cadence MACB rev 0x0001010c at 0xf802c000 irq 52 (da:4c:1c:d1:05:ad)
macb f802c000.ethernet eth1: attached PHY driver [Micrel KSZ8081 or KSZ8091](mii_bus:phy_addr=f802c000.etherne:01, irq=-1)
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ehci-atmel: EHCI Atmel driver
atmel-ehci 700000.ehci: EHCI Host Controller
atmel-ehci 700000.ehci: new USB bus registered, assigned bus number 1
atmel-ehci 700000.ehci: irq 55, io mem 0x00700000
atmel-ehci 700000.ehci: USB 2.0 started, EHCI 1.00
usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb1: Product: EHCI Host Controller
usb usb1: Manufacturer: Linux 4.1.0-linux4sam_5.3-00053-gaa504b4 ehci_hcd
usb usb1: SerialNumber: 700000.ehci
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 3 ports detected
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
ohci-atmel: OHCI Atmel driver
at91_ohci 600000.ohci: USB Host Controller
at91_ohci 600000.ohci: new USB bus registered, assigned bus number 2
at91_ohci 600000.ohci: irq 55, io mem 0x00600000
usb usb2: New USB device found, idVendor=1d6b, idProduct=0001
usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb2: Product: USB Host Controller
usb usb2: Manufacturer: Linux 4.1.0-linux4sam_5.3-00053-gaa504b4 ohci_hcd
usb usb2: SerialNumber: at91
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 3 ports detected
usbcore: registered new interface driver cdc_acm
cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
usbcore: registered new interface driver usb-storage
usbcore: registered new interface driver usbserial
usbcore: registered new interface driver usbserial_generic
usbserial: USB Serial support registered for generic
usbcore: registered new interface driver ftdi_sio
usbserial: USB Serial support registered for FTDI USB Serial Device
usbcore: registered new interface driver pl2303
usbserial: USB Serial support registered for pl2303
rtc rtc0: alarm rollover not handled
rtc rtc0: invalid alarm value: 1900-1-1 0:0:0
at91_rtc fffffeb0.rtc: rtc core: registered fffffeb0.rtc as rtc0
at91_rtc fffffeb0.rtc: AT91 Real Time Clock driver.
i2c /dev entries driver
AT91: Starting after user reset
sdhci: Secure Digital Host Controller Interface driver
sdhci: Copyright(c) Pierre Ossman
atmel_mci f0000000.mmc: version: 0x505
atmel_mci f0000000.mmc: using dma0chan6 for DMA transfers
atmel_mci f0000000.mmc: Atmel MCI controller at 0xf0000000 irq 25, 1 slots
atmel_mci f8000000.mmc: version: 0x505
atmel_mci f8000000.mmc: using dma1chan2 for DMA transfers
mmc0: host does not support reading read-only switch, assuming write-enable
atmel_mci f8000000.mmc: Atmel MCI controller at 0xf8000000 irq 34, 1 slots
sdhci-pltfm: SDHCI platform and OF driver helper
ledtrig-cpu: registered to indicate activity on CPUs
atmel_aes f8038000.aes: version: 0x135
mmc0: new high speed SDHC card at address 0007
mmcblk0: mmc0:0007 SD16G 14.4 GiB
mmcblk0: p1 p2
atmel_aes f8038000.aes: Atmel AES - Using dma1chan3, dma1chan4 for DMA transfers
atmel_sha f8034000.sha: version: 0x410
atmel_sha f8034000.sha: using dma1chan5 for DMA transfers
atmel_sha f8034000.sha: Atmel SHA1/SHA256/SHA224/SHA384/SHA512
atmel_tdes f803c000.tdes: version: 0x701
atmel_tdes f803c000.tdes: using dma1chan6, dma1chan7 for DMA transfers
atmel_tdes f803c000.tdes: Atmel DES/TDES
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
iio iio:device0: Resolution used: 12 bits
iio iio:device0: ADC Touch screen is disabled.
NET: Registered protocol family 17
can: controller area network core (rev 20120528 abi 9)
NET: Registered protocol family 29
can: raw protocol (rev 20120528)
can: broadcast manager protocol (rev 20120528 t)
can: netlink gateway (rev 20130117) max_hops=1
input: gpio_keys as /devices/soc0/gpio_keys/input/input0
at91_rtc fffffeb0.rtc: setting system clock to 2016-08-16 08:39:09 UTC (1471336749)
ALSA device list:
No soundcards found.
EXT4-fs (mmcblk0p2): couldn't mount as ext3 due to feature incompatibilities
EXT4-fs (mmcblk0p2): couldn't mount as ext2 due to feature incompatibilities
EXT4-fs (mmcblk0p2): recovery complete
EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
VFS: Mounted root (ext4 filesystem) on device 179:2.
devtmpfs: mounted
Freeing unused kernel memory: 192K (c0688000 - c06b8000)
udevd[651]: starting version 3.2
random: udevd urandom read with 78 bits of entropy available
udevd[652]: starting eudev-3.2
EXT4-fs (mmcblk0p2): re-mounted. Opts: data=ordered
random: nonblocking pool is initialized

@alexandrebelloni
Copy link
Contributor

Building the image for the flash is done using the sama5d3-xplained machine configuration.

It is difficult to help you further regarding your issue with ttyGS0 because I don't know what you include in your image.
I've tested atmel-xplained-demo-image on krogoth and this works fine.

@Majdoddin
Copy link
Author

I know about sama5d3-xplained machine configuration, but it does not generate a single flash image, a wic file. By contrast, sama5d2-xplained does it.

And abut the ttyGS0 issue, now I understand it, many thanks.

@alexandrebelloni
Copy link
Contributor

It generates a .ubi file that is directly flashable on the NAND flash through sam-ba (see http://www.at91.com/linux4sam/bin/view/Linux4SAM/Sama5d3XplainedMainPage#Program_rootfs_UBI_file)

sama5d2 doesn't have NAND flash and only has emmc and SD card. The generated wic image is supposed to be written on an SDcard instead of untaring on the SDcard (as in http://www.at91.com/linux4sam/bin/view/Linux4SAM/Sama5d2XplainedMainPage#Flash_the_demo).

@Majdoddin
Copy link
Author

Now I see, Thank you very much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants