can't open /dev/ttyAM0: No such file or directory

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

can't open /dev/ttyAM0: No such file or directory

2,112 Views
cloudliao
Contributor I

I build images for imx280 using yoctoproject for my test board. After I power on I get error message "can't open /dev/ttyAM0: No such file or directory"

How to solve this issue?

PowerPrep start initialize power...

Configured for 5v only power source.  Battery powered operation disabled.
Jan 28 201409:35:53
FRAC 0x92925552
memory type is DDR2
Wait for ddr ready 1power 0x00820710
Frac 0x92925552
start change cpu freq
hbus 0x00000003
cpu 0x00010001

U-Boot 2009.08 (Jan 28 2014 - 09:30:23)


Freescale i.MX28 family

CPU:   454 MHz

BUS:   151 MHz

EMI:   205 MHz

GPMI:   24 MHz

DRAM:  64 MB

NAND:  Manufacturer      : Spansion (0x01)

Device Code       : 0xf1

Cell Technology   : SLC

Chip Size         : 128 MiB

Pages per Block   : 64

Page Geometry     : 2048+64

ECC Strength      : 1 bits

ECC Size          : 512 B

Data Setup Time   : 20 ns

Data Hold Time    : 10 ns

Address Setup Time: 10 ns

GPMI Sample Delay : 6 ns

tREA              : 20 ns

tRLOH             : 5 ns

tRHOH             : 15 ns

Description       : S34ML01G1

128 MiB

In:    serial

Out:   serial

Err:   serial

Net:   got MAC address from IIM: 00:04:00:00:00:00

FEC0

Hit any key to stop autoboot:  3     2     1     0


NAND read: device 0 offset 0x200000, size 0x300000

3145728 bytes read: OK

## Booting kernel from Legacy Image at 42000000 ...

   Image Name:   Linux-2.6.35.3-maintain+yocto+g9

   Image Type:   ARM Linux Kernel Image (uncompressed)

   Data Size:    1558344 Bytes =  1.5 MB

   Load Address: 40008000

   Entry Point:  40008000

   Verifying Checksum ... OK

   Loading Kernel Image ... OK

OK


Starting kernel ...


Uncompressing Linux... done, booting the kernel.
[    0.000000] Linux version 2.6.35.3-maintain+yocto+g903363e (cloud@wncAspireM7720.wnc.com.tw) (gcc version 4.8.1 (GCC) ) #1 Wed Mar 5 18:22:46 CST 2014

[    0.000000] CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177

[    0.000000] CPU: VIVT data cache, VIVT instruction cache

[    0.000000] Machine: Freescale MX28EVK board

[    0.000000] Memory policy: ECC disabled, Data cache writeback

[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256

[    0.000000] Kernel command line: console=ttyAM0,115200n8 ubi.mtd=3 root=ubi0:rootfs rootfstype=ubifs rw gpmi

[    0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)

[    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)

[    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)

[    0.000000] Memory: 64MB = 64MB total

[    0.000000] Memory: 61552k/61552k available, 3984k reserved, 0K highmem

[    0.000000] Virtual kernel memory layout:

[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)

[    0.000000]     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)

[    0.000000]     DMA     : 0xfde00000 - 0xffe00000   (  32 MB)

[    0.000000]     vmalloc : 0xc4800000 - 0xf0000000   ( 696 MB)

[    0.000000]     lowmem  : 0xc0000000 - 0xc4000000   (  64 MB)

[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)

[    0.000000]       .init : 0xc0008000 - 0xc0026000   ( 120 kB)

[    0.000000]       .text : 0xc0026000 - 0xc02f1000   (2860 kB)

[    0.000000]       .data : 0xc02f2000 - 0xc0310ec0   ( 124 kB)

[    0.000000] SLUB: Genslabs=11, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1

[    0.000000] Hierarchical RCU implementation.

[    0.000000]  RCU-based detection of stalled CPUs is disabled.

[    0.000000]  Verbose stalled-CPUs detection is disabled.

[    0.000000] NR_IRQS:288

[    0.000000] Console: colour dummy device 80x30

[    0.000000] console [ttyAM0] enabled

[    0.010000] Calibrating delay loop... 226.09 BogoMIPS (lpj=1130496)

[    0.250000] pid_max: default: 32768 minimum: 301

[    0.250000] Mount-cache hash table entries: 512

[    0.260000] CPU: Testing write buffer coherency: ok

[    0.270000] regulator: core version 0.5

[    0.270000] NET: Registered protocol family 16

[    0.280000] regulator: vddd: 800 <--> 1575 mV at 1500 mV fast normal

[    0.290000] regulator: vdddbo: 800 <--> 1575 mV fast normal

[    0.290000] regulator: vdda: 1500 <--> 2275 mV at 1800 mV fast normal

[    0.300000] vddio = 3380000, val=10

[    0.300000] regulator: vddio: 2880 <--> 3680 mV at 3380 mV fast normal

[    0.310000] regulator: overall_current: fast normal

[    0.310000] regulator: vbus5v:

[    0.320000] regulator: mxs-duart-1: fast normal

[    0.320000] regulator: mxs-bl-1: fast normal

[    0.330000] regulator: mxs-i2c-1: fast normal

[    0.330000] regulator: mmc_ssp-1: fast normal

[    0.340000] regulator: mmc_ssp-2: fast normal

[    0.340000] regulator: charger-1: fast normal

[    0.350000] regulator: power-test-1: fast normal

[    0.350000] regulator: cpufreq-1: fast normal

[    0.360000] i.MX IRAM pool: 124 KB@0xc4820000

[    0.360000] Initializing GPMI pins

[    0.370000] !!!!!! arch/arm/mach-mx28/mx28evk.c:134 mx28evk_init_max6371_wdt

[    0.370000] usb DR wakeup device is registered

[    0.380000] IMX usb wakeup probe

[    0.400000] audit: cannot initialize inotify handle

[    0.410000] bio: create slab <bio-0> at 0

[    0.410000] SCSI subsystem initialized

[    0.420000] Switching to clocksource mxs clock source

[    0.430000] Bus freq driver module loaded

[    0.460000] audit: initializing netlink socket (disabled)

[    0.460000] type=2000 audit(0.450:1): initialized

[    0.510000] JFFS2 version 2.2. (NAND) © 2001-2006 Red Hat, Inc.

[    0.520000] msgmni has been set to 120

[    0.530000] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253)

[    0.530000] io scheduler noop registered (default)

[    0.690000] Console: switching to colour frame buffer device 100x30

[    1.690000] mxs-duart.0: ttyAM0 at MMIO 0x80074000 (irq = 47) is a DebugUART

[    1.700000] mxs-auart.0: ttySP0 at MMIO 0x8006a000 (irq = 112) is a mxs-auart.0

[    1.710000] Found APPUART 3.1.0

[    1.710000] mxs-auart.1: ttySP1 at MMIO 0x8006c000 (irq = 113) is a mxs-auart.1

[    1.720000] Found APPUART 3.1.0

[    1.720000] mxs-auart.2: ttySP2 at MMIO 0x8006e000 (irq = 114) is a mxs-auart.2

[    1.730000] Found APPUART 3.1.0

[    1.740000] mxs-auart.3: ttySP3 at MMIO 0x80070000 (irq = 115) is a mxs-auart.3

[    1.750000] Found APPUART 3.1.0

[    1.750000] mxs-auart.4: ttySP4 at MMIO 0x80072000 (irq = 116) is a mxs-auart.4

[    1.760000] Found APPUART 3.1.0

[    1.770000] brd: module loaded

[    1.790000] loop: module loaded

[    1.790000] Loading iSCSI transport class v2.0-870.

[    1.810000] i.MX GPMI NFC

[    1.810000] NFC: Version 1, 8-chip GPMI and BCH

[    1.810000] Boot ROM: Version 1, Single-chip boot area, block mark swapping supported

[    1.820000] Scanning for NAND Flash chips...

[    1.830000] NAND device: Manufacturer ID: 0x01, Chip ID: 0xf1 (Spansion NAND 128MiB 3,3V 8-bit)

[    1.880000] -----------------------------

[    1.880000] NAND Flash Device Information

[    1.880000] -----------------------------

[    1.890000] Manufacturer      : Spansion (0x01)

[    1.890000] Device Code       : 0xf1

[    1.900000] Cell Technology   : SLC

[    1.900000] Chip Size         : 128 MiB

[    1.900000] Pages per Block   : 64

[    1.910000] Page Geometry     : 2048+64

[    1.910000] ECC Strength      : 1 bits

[    1.910000] ECC Size          : 512 B

[    1.920000] Data Setup Time   : 20 ns

[    1.920000] Data Hold Time    : 10 ns

[    1.930000] Address Setup Time: 10 ns

[    1.930000] GPMI Sample Delay : 6 ns

[    1.930000] tREA              : 20 ns

[    1.940000] tRLOH             : 5 ns

[    1.940000] tRHOH             : 15 ns

[    1.940000] Description       : S34ML01G1

[    1.950000] -----------------

[    1.950000] Physical Geometry

[    1.950000] -----------------

[    1.960000] Chip Count             : 1

[    1.960000] Page Data Size in Bytes: 2048 (0x800)

[    1.960000] Page OOB Size in Bytes : 64

[    1.970000] Block Size in Bytes    : 131072 (0x20000)

[    1.970000] Block Size in Pages    : 64 (0x40)

[    1.980000] Chip Size in Bytes     : 134217728 (0x8000000)

[    1.980000] Chip Size in Pages     : 65536 (0x10000)

[    1.990000] Chip Size in Blocks    : 1024 (0x400)

[    1.990000] Medium Size in Bytes   : 134217728 (0x8000000)

[    2.000000] ------------

[    2.000000] NFC Geometry

[    2.000000] ------------

[    2.010000] ECC Algorithm          : BCH

[    2.010000] ECC Strength           : 8

[    2.010000] Page Size in Bytes     : 2112

[    2.020000] Metadata Size in Bytes : 10

[    2.020000] ECC Chunk Size in Bytes: 512

[    2.030000] ECC Chunk Count        : 4

[    2.030000] Payload Size in Bytes  : 2048

[    2.030000] Auxiliary Size in Bytes: 16

[    2.040000] Auxiliary Status Offset: 12

[    2.040000] Block Mark Byte Offset : 1999

[    2.050000] Block Mark Bit Offset  : 0

[    2.050000] -----------------

[    2.050000] Boot ROM Geometry

[    2.060000] -----------------

[    2.060000] Boot Area Count            : 1

[    2.060000] Boot Area Size in Bytes    : 2097152 (0x200000)

[    2.070000] Stride Size in Pages       : 64

[    2.070000] Search Area Stride Exponent: 2

[    2.080000] Scanning device for bad blocks

[    2.170000] Bad eraseblock 911 at 0x0000071e0000

[    2.190000] Boot area protection is enabled.

[    2.190000] Creating 4 MTD partitions on "gpmi-nfc-main":

[    2.200000] 0x000000000000-0x000000200000 : "gpmi-nfc-0-boot"

[    2.210000] 0x000000200000-0x000000500000 : "gpmi-nfc-0-kernel"

[    2.220000] 0x000000500000-0x000000900000 : "gpmi-nfc-0-ap"

[    2.230000] 0x000000900000-0x000008000000 : "gpmi-nfc-general-use"

[    2.240000] UBI: attaching mtd3 to ubi0

[    2.250000] UBI: physical eraseblock size:   131072 bytes (128 KiB)

[    2.250000] UBI: logical eraseblock size:    126976 bytes

[    2.260000] UBI: smallest flash I/O unit:    2048

[    2.260000] UBI: VID header offset:          2048 (aligned 2048)

[    2.270000] UBI: data offset:                4096

[    3.400000] UBI: attached mtd3 to ubi0

[    3.410000] UBI: MTD device name:            "gpmi-nfc-general-use"

[    3.410000] UBI: MTD device size:            119 MiB

[    3.420000] UBI: number of good PEBs:        951

[    3.420000] UBI: number of bad PEBs:         1

[    3.430000] UBI: max. allowed volumes:       128

[    3.430000] UBI: wear-leveling threshold:    4096

[    3.440000] UBI: number of internal volumes: 1

[    3.440000] UBI: number of user volumes:     1

[    3.450000] UBI: available PEBs:             21

[    3.450000] UBI: total number of reserved PEBs: 930

[    3.460000] UBI: number of PEBs reserved for bad PEB handling: 9

[    3.460000] UBI: max/mean erase counter: 2/1

[    3.470000] UBI: image sequence number: 0

[    3.470000] UBI: background thread "ubi_bgt0d" started, PID 900

[    3.480000]  ubiblka: unknown partition table

[    3.480000] ARC USBOTG Device Controller driver (1 August 2005)

[    3.500000] check_parameters:UTP settings are in place now, overriding defaults

[    3.510000] g_file_storage gadget: File-backed Storage Gadget, version: 20 November 2008

[    3.520000] g_file_storage gadget: Number of LUNs=1

[    3.530000] fsl-usb2-udc: bind to driver g_file_storage

[    3.530000] mice: PS/2 mouse device common for all mice

[    3.540000] input: mxs-kbd as /devices/platform/mxs-kbd.0/input/input0

[    3.550000] input: MXS touchscreen as /devices/virtual/input/input1

[    3.560000] MXS RTC driver v1.0 hardware v2.3.0

[    3.570000] mxs-rtc mxs-rtc.0: rtc core: registered mxs-rtc as rtc0

[    3.580000] This is 5V only build.

[    3.580000] !!!!!! drivers/watchdog/max63xx_wdt.c:327 max63xx_wdt_init()

[    3.590000] !!!!!! drivers/watchdog/max63xx_wdt.c:261 max63xx_wdt_probe()

[    3.590000] max63xx_wdt max6371_wdt.37: requesting 60s heartbeat

[    3.600000] max63xx_wdt max6371_wdt.37: using 60s heartbeat with 60s initial delay

[    3.610000] max63xx_wdt max6371_wdt.37: using GPIO1_5 to reset watchdog

[    3.620000] mxs-mmc: MXS SSP Controller MMC Interface driver

[    3.680000] __mxs_reset_block(f0010000): timeout when resetting

[    3.750000] __mxs_reset_block(f0010000): timeout when resetting

[    3.810000] __mxs_reset_block(f0010000): timeout when resetting

[    3.880000] __mxs_reset_block(f0010000): timeout when resetting

[    3.940000] __mxs_reset_block(f0010000): timeout when resetting

[    3.950000] mxs-mmc mxs-mmc.0: mmc0: MXS SSP MMC DMAIRQ 82 ERRIRQ 96

[    3.970000] mxs-rtc mxs-rtc.0: setting system clock to 1970-01-01 00:00:10 UTC (10)

Labels (3)
0 Kudos
4 Replies

1,055 Views
YixingKong
Senior Contributor IV

Cloud

This discussion is closed since no activity. If you still need help, please feel free to reply with an update to this discussion, or create another discussion.

Thanks,

Yixing

0 Kudos

1,055 Views
YixingKong
Senior Contributor IV

Cloud

Had your issue got resolved? If yes, we are going to close the discussion in 3 days. If you still need help, please feel free to reply with an update to this discussion.

Thanks,

Yixing

0 Kudos

1,055 Views
fabio_estevam
NXP Employee
NXP Employee

You are using a very old U-boot version. I wouls suggest you to upgrade to 2014.01 U-boot.

There is a patch in meta-fsl-arm that changes the serial device to ttyAMA0 (note the extra A).

Also, you could also use a more recent kernel instead of 2.6.35.

You could try 3.13.6.

Regards,

Fabio Estevam

0 Kudos

1,055 Views
alejandrolozan1
NXP Employee
NXP Employee

Hi,

I can not find in the bootlog the error you mention.

Where  are you seeing this error?

Best Regards,

Alejandro

0 Kudos