Jump to content

    
Sign in to follow this  
Alex_Golubev

Промышленный компьютер тион-про28

Recommended Posts

11 minutes ago, Alex_Golubev said:

Может есть где то готовый настроенный .dts ?

Свой надо иметь :) В прошлый раз просто не скомпилировался .dtb из него, что видно по датам.

Share this post


Link to post
Share on other sites
Quote

Это чудо-тион умеет грузиться с NAND

Да может. 

Spoiler

<0><0>HTLLCLLC

U-Boot 2018.05 (May 15 2019 - 08:52:49 +0700)

CPU:   Freescale i.MX28 rev1.2 at 454 MHz
BOOT:  SSP SD/MMC #0, 3V3
SPI:   ready
DRAM:  128 MiB
No arch specific invalidate_icache_all available!
NAND:  256 MiB
MMC:   MXS MMC: 0
Loading Environment from MMC... *** Warning - bad CRC, using default environment

Failed (-5)
Video: MXSFB: 'videomode' variable not set!
In:    serial
Out:   serial
Err:   serial
Net:   FEC0 [PRIME], FEC1
Hit any key to stop autoboot:  0 
switch to partitions #0, OK
mmc0 is current device
** Unable to read file boot.scr **
4506312 bytes read in 1333 ms (3.2 MiB/s)
Booting from mmc ...
22316 bytes read in 31 ms (702.1 KiB/s)
Kernel image @ 0x42000000 [ 0x000000 - 0x44c2c8 ]
## Flattened Device Tree blob at 41000000
   Booting using the fdt blob at 0x41000000
   Loading Device Tree to 47b17000, end 47b1f72b ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.17.8 (alexey@alexey) (gcc version 7.4.0 (Buildroot 2019.05-rc1-00043-g47840289bf)) #1 Wed May 15 08:54:19 +07 2019
[    0.000000] CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=0005317f
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] OF: fdt: Machine model: Freescale i.MX28 Evaluation Kit
[    0.000000] Memory policy: Data cache writeback
[    0.000000] random: get_random_bytes called from start_kernel+0x84/0x474 with crng_init=0
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 32512
[    0.000000] Kernel command line: console=ttyAMA0,115200 root=/dev/mmcblk0p3 rw rootwait
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Memory: 113240K/131072K available (6064K kernel code, 555K rwdata, 2008K rodata, 300K init, 7442K bss, 17832K reserved, 0K cma-reserved)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xc8800000 - 0xff800000   ( 880 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xc8000000   ( 128 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0x(ptrval) - 0x(ptrval)   (6066 kB)
[    0.000000]       .init : 0x(ptrval) - 0x(ptrval)   ( 300 kB)
[    0.000000]       .data : 0x(ptrval) - 0x(ptrval)   ( 556 kB)
[    0.000000]        .bss : 0x(ptrval) - 0x(ptrval)   (7443 kB)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] Running RCU self tests
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] clocksource: mxs_timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000032] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
[    0.002269] Console: colour dummy device 80x30
[    0.002430] Lock dependency validator: Copyright (c) 2006 Red Hat, Inc., Ingo Molnar
[    0.002497] ... MAX_LOCKDEP_SUBCLASSES:  8
[    0.002551] ... MAX_LOCK_DEPTH:          48
[    0.002603] ... MAX_LOCKDEP_KEYS:        8191
[    0.002652] ... CLASSHASH_SIZE:          4096
[    0.002702] ... MAX_LOCKDEP_ENTRIES:     32768
[    0.002753] ... MAX_LOCKDEP_CHAINS:      65536
[    0.002802] ... CHAINHASH_SIZE:          32768
[    0.002853]  memory used by lock dependency info: 4655 kB
[    0.002903]  per task-struct memory footprint: 1536 bytes
[    0.003102] Calibrating delay loop... 226.09 BogoMIPS (lpj=1130496)
[    0.071448] pid_max: default: 32768 minimum: 301
[    0.072579] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.072689] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.081138] CPU: Testing write buffer coherency: ok
[    0.090278] Setting up static identity map for 0x40008400 - 0x40008458
[    0.103344] devtmpfs: initialized
[    0.165096] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.165346] futex hash table entries: 256 (order: 1, 11264 bytes)
[    0.167003] pinctrl core: initialized pinctrl subsystem
[    0.181270] NET: Registered protocol family 16
[    0.184276] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.389524] Serial: AMBA PL011 UART driver
[    0.393133] 80074000.serial: ttyAMA0 at MMIO 0x80074000 (irq = 236, base_baud = 0) is a PL011 rev2
[    0.714817] console [ttyAMA0] enabled
[    0.801795] mxs-dma 80004000.dma-apbh: initialized
[    0.819819] mxs-dma 80024000.dma-apbx: initialized
[    0.846840] SCSI subsystem initialized
[    0.853812] usbcore: registered new interface driver usbfs
[    0.860095] usbcore: registered new interface driver hub
[    0.866404] usbcore: registered new device driver usb
[    0.881253] pps_core: LinuxPPS API ver. 1 registered
[    0.886521] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.895936] PTP clock support registered
[    0.902908] Advanced Linux Sound Architecture Driver Initialized.
[    0.917432] clocksource: Switched to clocksource mxs_timer
[    1.575134] NET: Registered protocol family 2
[    1.584781] tcp_listen_portaddr_hash hash table entries: 128 (order: 0, 5120 bytes)
[    1.592966] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    1.600326] TCP bind hash table entries: 1024 (order: 3, 36864 bytes)
[    1.607941] TCP: Hash tables configured (established 1024 bind 1024)
[    1.615499] UDP hash table entries: 256 (order: 2, 20480 bytes)
[    1.622285] UDP-Lite hash table entries: 256 (order: 2, 20480 bytes)
[    1.630503] NET: Registered protocol family 1
[    1.641416] RPC: Registered named UNIX socket transport module.
[    1.647917] RPC: Registered udp transport module.
[    1.652715] RPC: Registered tcp transport module.
[    1.657694] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    1.678996] workingset: timestamp_bits=30 max_order=15 bucket_order=0
[    1.768982] NFS: Registering the id_resolver key type
[    1.775188] Key type id_resolver registered
[    1.779953] Key type id_legacy registered
[    1.784552] jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
[    1.816105] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
[    1.824115] io scheduler noop registered (default)
[    1.829242] io scheduler mq-deadline registered
[    1.833867] io scheduler kyber registered
[    1.847901] pwm-backlight backlight: backlight supply power not found, using dummy regulator
[    1.906519] Console: switching to colour frame buffer device 100x30
[    1.933661] mxsfb 80030000.lcdif: initialized
[    1.945383] 8006a000.serial: ttyAPP0 at MMIO 0x8006a000 (irq = 234, base_baud = 1500000) is a 8006a000.serial
[    1.957873] mxs-auart 8006a000.serial: Found APPUART 3.1.0
[    1.965897] 80070000.serial: ttyAPP3 at MMIO 0x80070000 (irq = 235, base_baud = 1500000) is a 80070000.serial
[    1.978524] mxs-auart 80070000.serial: Found APPUART 3.1.0
[    2.029590] random: fast init done
[    2.070753] nand: device found, Manufacturer ID: 0x2c, Chip ID: 0xda
[    2.077206] nand: Micron MT29F2G08ABAEAWP
[    2.081518] nand: 256 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    2.097791] Scanning device for bad blocks
[    3.359499] gpmi-nand 8000c000.gpmi-nand: driver registered.
[    3.398153] m25p80 spi1.0: unrecognized JEDEC id bytes: ff, ff, ff
[    3.409902] libphy: Fixed MDIO Bus: probed
[    3.566642] libphy: fec_enet_mii_bus: probed
[    3.577149] fec 800f4000.ethernet: 800f4000.ethernet supply phy not found, using dummy regulator
[    3.594466] usbcore: registered new interface driver asix
[    3.600607] usbcore: registered new interface driver ax88179_178a
[    3.607152] usbcore: registered new interface driver cdc_ether
[    3.613820] usbcore: registered new interface driver smsc95xx
[    3.620293] usbcore: registered new interface driver net1080
[    3.626431] usbcore: registered new interface driver cdc_subset
[    3.633033] usbcore: registered new interface driver zaurus
[    3.639474] usbcore: registered new interface driver cdc_ncm
[    3.645235] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    3.652581] usbcore: registered new interface driver usb-storage
[    3.690096] ci_hdrc ci_hdrc.1: EHCI Host Controller
[    3.696056] ci_hdrc ci_hdrc.1: new USB bus registered, assigned bus number 1
[    3.727749] ci_hdrc ci_hdrc.1: USB 2.0 started, EHCI 1.00
[    3.748361] hub 1-0:1.0: USB hub found
[    3.753288] hub 1-0:1.0: 1 port detected
[    3.773427] input: mxs-lradc-ts as /devices/soc0/80000000.apb/80040000.apbx/80050000.lradc/mxs-lradc-ts/input/input0
[    3.794275] stmp3xxx-rtc 80056000.rtc: rtc core: registered 80056000.rtc as rtc0
[    3.803857] i2c /dev entries driver
[    3.818182] stmp3xxx_rtc_wdt stmp3xxx_rtc_wdt: initialized watchdog with heartbeat 19s
[    3.863135] mxs-mmc 80010000.ssp: initialized
[    3.892303] mxs-dcp 80028000.dcp: Failed to register sha1 hash!
[    3.901989] mxs-dcp: probe of 80028000.dcp failed with error -22
[    3.915649] usbcore: registered new interface driver usbhid
[    3.921562] usbhid: USB HID core driver
[    3.938083] mmc0: host does not support reading read-only switch, assuming write-enable
[    3.958642] mmc0: new high speed SDHC card at address aaaa
[    3.982850] mmcblk0: mmc0:aaaa SL16G 14.8 GiB 
[    4.013573] mxs-sgtl5000 sound: ASoC: CODEC DAI sgtl5000 not registered
[    4.029487]  mmcblk0: p1 p2 p3
[    4.036516] NET: Registered protocol family 17
[    4.046407] Key type dns_resolver registered
[    4.070013] registered taskstats version 1
[    4.157268] sgtl5000 0-000a: Error reading chip id -6
[    4.168888] mxs-sgtl5000 sound: ASoC: CODEC DAI sgtl5000 not registered
[    4.179336] stmp3xxx-rtc 80056000.rtc: setting system clock to 1970-01-01 00:01:51 UTC (111)
[    4.189683] usb0_vbus: disabling
[    4.193375] can-3v3: disabling
[    4.196526] ALSA device list:
[    4.199813]   No soundcards found.
[    4.208503] uart-pl011 80074000.serial: no DMA platform data
[    4.228450] EXT4-fs (mmcblk0p3): mounting ext2 file system using the ext4 subsystem
[    4.272326] EXT4-fs (mmcblk0p3): warning: mounting unchecked fs, running e2fsck is recommended
[    4.290388] EXT4-fs (mmcblk0p3): mounted filesystem without journal. Opts: (null)
[    4.298609] VFS: Mounted root (ext2 filesystem) on device 179:3.
[    4.340858] devtmpfs: mounted
[    4.346407] Freeing unused kernel memory: 300K
[    4.351194] This architecture does not have kernel memory protection.
[    4.596637] EXT4-fs (mmcblk0p3): re-mounted. Opts: block_validity,barrier,user_xattr
Starting syslogd: OK
Starting klogd: OK
Initializing random number generator... [    5.244356] random: dd: uninitialized urandom read (512 bytes read)
done.
Starting network: OK


Welcome to Buildroot

buildroot login: 

Вот что получил

Share this post


Link to post
Share on other sites

Ну вот, уже прогресс. Теперь можете приступать к запиливанию U-Boot, ядра и обоих DT под ваши нужды. Я бы U-Boot, ядро и DT оставил в NAND, а rootfs разместил целиком на SD-карте

Share this post


Link to post
Share on other sites
2 hours ago, Alex_Golubev said:

Можно пошаговую инструкцию?

Можно, но сначала напишите, в какой очередности хотите запускать периферию - будем потихоньку править dts.

Share this post


Link to post
Share on other sites
17 minutes ago, aaarrr said:

в какой очередности хотите запускать периферию

Из очевидного - m25p80 лишний, не запускается ни один ethernet, девайс по имени sgtl5000 явно отсутствует.

2Alex_Golubev:

1. /proc/config.gz имеется в загруженной системе?

2. Toolchain для сборки - изнутри buildroot или свой?

Share this post


Link to post
Share on other sites

1 Дисплей.

2 тачьскрин

3 USB HOST 

4 UART 

5 Попробуем TCP/IP. 

6 Может что еще. ну думаю дальше сам уже. 

В конце хочу написать инструкцию по шагам, может кому пригодится для старта как мне. 

Share this post


Link to post
Share on other sites

1 и 2 - после того, как ядро научитесь перекомпилировать.

3 - судя по логам, признаки жизни подает

4 - минимум две штуки есть.

5 - как уже сказал, надо оживить ethernet'ы. Судя по схеме - два Phy на одной шине MDIO. Как это оформляется в DT я уже тут писал в разделе FPGA-SoC.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this