Warning: touch() [function.touch]: Unable to create file /home/starterkit/starterkit.ru/html/error.log because Permission denied in /home/starterkit/starterkit.ru/html/errorhandler.php on line 51
КФС - Embedded Linux - Форум - starterkit.ru
Ник:
Пароль:

Контакты

E-mail: info@starterkit.ru
тел.: +7 922 680-21-73
тел.: +7 922 680-21-74
Телеграм: t.me/starterkit_ru
Партнеры:
otladka.com.ua - г.Киев

Способы оплаты

User Info


Добро пожаловать,
Guest

Регистрация или входРегистрация или вход
Потеряли пароль?Потеряли пароль?

Ник:
Пароль:

ПользователейПользователей:2
Поисковых ботовПоисковых ботов:3
ГостейГостей:1

ОбновитьПодробнееВсегоВсего:6
Форум » starterkit.ru » Embedded Linux
КФС
esp23
Добавлено 02.08.2013 11:02
0
Сообщение: 1
esp23
0

Пункты: 1090
Регистрация: 19.06.2013
Собрал КФС в buildroot-2012.5 причем корневая файловая система хранится на usb флешке.

лог загрузки:
U-Boot 2010.03 (Apr 21 2010 - 18:56:06)

DRAM: 32 MB
NAND: 256 MiB
DataFlash:AT45DB321
Nb pages: 8192
Page Size: 528
Size= 4325376 bytes
Logical address: 0xC0000000
Area 0: C0000000 to C00041FF (RO) Bootstrap
Area 1: C0004200 to C00083FF Environment
Area 2: C0008400 to C0041FFF (RO) U-Boot
Area 3: C0042000 to C0251FFF Kernel
Area 4: C0252000 to C041FFFF FS
In: serial
Out: serial
Err: serial
Net: macb0
macb0: PHY present at 1
macb0: Starting autonegotiation...
macb0: Autonegotiation complete
macb0: link up, 100Mbps full-duplex (lpa: 0x45e1)
Hit any key to stop autoboot: 0
U-Boot> usb start
(Re)start USB...
USB: scanning bus for devices... 2 USB Device(s) found
scanning bus for storage devices... 1 Storage Device(s) found
U-Boot> usb start
(Re)start USB...
USB: scanning bus for devices... 2 USB Device(s) found
scanning bus for storage devices... 1 Storage Device(s) found
U-Boot> boot

NAND read: device 0 offset 0x60000, size 0x780000
7864320 bytes read: OK
## Booting kernel from Legacy Image at 20400000 ...
Image Name: Linux Kernel Image
Image Type: ARM Linux Kernel Image (gzip compressed)
Data Size: 1644917 Bytes = 1.6 MB
Load Address: 20008000
Entry Point: 20008000
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK

Starting kernel ...

Linux version 3.2.1 (root@vm) (gcc version 4.2.0 20070413 (prerelease) (CodeSourcery Sourcery G++ Lite 2007q1-10)) #4 Tue Jul 30 16:23:52 MSD 2013
CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177
CPU: VIVT data cache, VIVT instruction cache
Machine: Atmel AT91SAM9260-EK
Memory policy: ECC disabled, Data cache writeback
AT91: Detected soc type: at91sam9260
AT91: Detected soc subtype: Unknown
AT91: sram at 0x200000 of 0x1000 mapped at 0xfef77000
AT91: sram at 0x300000 of 0x1000 mapped at 0xfef76000
Clocks: CPU 200 MHz, master 100 MHz, main 12.000 MHz
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 8128
Kernel command line: console=ttyS0,115200 root=/dev/sda1 rootwait
PID hash table entries: 128 (order: -3, 512 bytes)
Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
Memory: 32MB = 32MB total
Memory: 29088k/29088k available, 3680k reserved, 0K highmem
Virtual kernel memory layout:
vector : 0xffff0000 - 0xffff1000 ( 4 kB)
fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
vmalloc : 0xc2800000 - 0xfee00000 ( 966 MB)
lowmem : 0xc0000000 - 0xc2000000 ( 32 MB)
modules : 0xbf000000 - 0xc0000000 ( 16 MB)
.text : 0xc0008000 - 0xc02f3b10 (2991 kB)
.init : 0xc02f4000 - 0xc0310000 ( 112 kB)
.data : 0xc0310000 - 0xc0330700 ( 130 kB)
.bss : 0xc0330700 - 0xc034631c ( 88 kB)
NR_IRQS:192
AT91: 96 gpio irqs in 3 banks
Console: colour dummy device 80x30
Calibrating delay loop... 99.73 BogoMIPS (lpj=498688)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
NET: Registered protocol family 16
AT91: Power Management
AT91: Starting after user reset
bio: create slab <bio-0> at 0
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
i2c-gpio i2c-gpio: using pins 55 (SDA) and 56 (SCL)
Switching to clocksource tcb_clksrc
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 1024 (order: 1, 8192 bytes)
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
TCP: Hash tables configured (established 1024 bind 1024)
TCP reno registered
UDP hash table entries: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
NET: Registered protocol family 1
NetWinder Floating Point Emulator V0.97 (double precision)
msgmni has been set to 56
io scheduler noop registered (default)
atmel_usart.0: ttyS0 at MMIO 0xfffff200 (irq = 1) is a ATMEL_SERIAL
console [ttyS0] enabled
brd: module loaded
ssc ssc.0: Atmel SSC device at 0xc2818000 (irq 14)
atmel_nand atmel_nand: No DMA support for NAND access.
NAND device: Manufacturer ID: 0xec, Chip ID: 0xda (Samsung NAND 256MiB 3,3V 8-bit)
AT91 NAND: 8-bit, Software ECC
Scanning device for bad blocks
Bad eraseblock 87 at 0x000000ae0000
Bad eraseblock 163 at 0x000001460000
Bad eraseblock 261 at 0x0000020a0000
Bad eraseblock 688 at 0x000005600000
Bad eraseblock 719 at 0x0000059e0000
Bad eraseblock 1080 at 0x000008700000
Creating 2 MTD partitions on "atmel_nand":
0x000000000000-0x000000040000 : "Partition 1"
0x000000040000-0x000010000000 : "Partition 2"
MACB_mii_bus: probed
eth0: Atmel MACB at 0xfffc4000 irq 21 (00:1f:f2:00:00:00)
eth0: attached PHY driver [Generic PHY] (mii_bus:phy_addr=ffffffff:01, irq=-1)
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
at91_ohci at91_ohci: AT91 OHCI
at91_ohci at91_ohci: new USB bus registered, assigned bus number 1
at91_ohci at91_ohci: irq 20, io mem 0x00500000
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
mousedev: PS/2 mouse device common for all mice
i2c /dev entries driver
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
TCP cubic registered
NET: Registered protocol family 17
drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
Waiting for root device /dev/sda1...
mmc0: host does not support reading read-only switch. assuming write-enable.
mmc0: new SD card at address 1234
mmcblk0: mmc0:1234 SA02G 1.85 GiB
mmcblk0: unknown partition table
usb 1-1: new full-speed USB device number 2 using at91_ohci
scsi0 : usb-storage 1-1:1.0
scsi 0:0:0:0: Direct-Access JetFlash Transcend 8GB 8.07 PQ: 0 ANSI: 4
sd 0:0:0:0: [sda] 15734784 512-byte logical blocks: (8.05 GB/7.50 GiB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
sda: sda1
sd 0:0:0:0: [sda] Attached SCSI removable disk
EXT2-fs (sda1): warning: mounting unchecked fs, running e2fsck is recommended
VFS: Mounted root (ext2 filesystem) on device 8:1.
Freeing init memory: 112K
Starting logging: OK
Starting network...
ifup: can't open '/var/run/ifstate': No such file or directory
Starting vsftpd: OK
и потом тишина ниче не происходит!
причем когда собирал buildroot-2010.2
все пахало!
Спуститься к концу Подняться к началу
Персональная информация
Jury093
Добавлено 02.08.2013 12:31 Редактировалось 02.08.2013 12:32 Сообщение: 2
Jury093
4.5

Пункты: 54233
Регистрация: 25.05.2009
Пол: Мужчина
Из: Санкт-Петербург
Цитата
VFS: Mounted root (ext2 filesystem) on device 8:1.

если нет жестких требований, то перейди на ext3
ext2 часто валится после зависаний и аварий..

что у тебя прописано в:
/etc/fstab
/etc/network/interfaces


а ошибка вероятно в том, что в строке ядра нет "rw" (без кавычек)

На любой вопрос есть любой ответ.
Спуститься к концу Подняться к началу
Персональная информация
esp23
Добавлено 02.08.2013 13:43 Сообщение: 3
esp23
0

Пункты: 1090
Регистрация: 19.06.2013
# /etc/fstab: static file system information.
#
# <file system> <mount pt> <type> <options> <dump> <pass>
/dev/root / ext2 rw,noauto 0 1
proc /proc proc defaults 0 0
devpts /dev/pts devpts defaults,gid=5,mode=620 0 0
tmpfs /dev/shm tmpfs mode=0777 0 0
tmpfs /tmp tmpfs defaults 0 0
sysfs /sys sysfs defaults 0 0

# Configure Loopback
auto lo
iface lo inet loopback

что делать то мне?!
Спуститься к концу Подняться к началу
Персональная информация
esp23
Добавлено 02.08.2013 13:48 Сообщение: 4
esp23
0

Пункты: 1090
Регистрация: 19.06.2013
Еще не сказал что при сборке выдавало ошибку файла sysv.S
вычитал что правится путем испревления строки .pad на UNWIND .pad может из за этого что то не так?
Спуститься к концу Подняться к началу
Персональная информация
Jury093
Добавлено 02.08.2013 15:01 Сообщение: 5
Jury093
4.5

Пункты: 54233
Регистрация: 25.05.2009
Пол: Мужчина
Из: Санкт-Петербург
Цитата
# /etc/fstab: static file system information.

вроде все правильно..

Цитата
что делать то мне?!

в строку загрузки ядра, там где console= и root= буковки rw добавили? и не помогло?

На любой вопрос есть любой ответ.
Спуститься к концу Подняться к началу
Персональная информация
esp23
Добавлено 02.08.2013 15:08 Сообщение: 6
esp23
0

Пункты: 1090
Регистрация: 19.06.2013
bootargs console=tty0 root=/dev/sda1 rw rootwait

Не помогло(
Спуститься к концу Подняться к началу
Персональная информация
Jury093
Добавлено 03.08.2013 12:51 Сообщение: 7
Jury093
4.5

Пункты: 54233
Регистрация: 25.05.2009
Пол: Мужчина
Из: Санкт-Петербург
Цитата
bootargs console=tty0 root=/dev/sda1 rw rootwait
Не помогло(

надеюсь console=tty0 - это опечатка?
еще чисто для проверки - как переносил рутовую на накопитель, руками, архивом, какой командой?
содержимое /etc/inittab
и выхлоп
ls -l /path/to/my/rootfs
смысл последней команды - посмотреть, как выглядит корень твоей рутовой, были преценденты..

На любой вопрос есть любой ответ.
Спуститься к концу Подняться к началу
Персональная информация
esp23
Добавлено 05.08.2013 16:12 Сообщение: 8
esp23
0

Пункты: 1090
Регистрация: 19.06.2013
bootargs=console=ttyS0,115200 root=/dev/sda1 rootwait

Рутовую переносил руками из output/target/
в MC копировал на носитель!

etc/inittab:


# /etc/inittab
#
# Copyright (C) 2001 Erik Andersen <andersen@codepoet.org>
#
# Note: BusyBox init doesn't support runlevels. The runlevels field is
# completely ignored by BusyBox init. If you want runlevels, use
# sysvinit.
#
# Format for each entry: <id>:<runlevels>:<action>:<process>
#
# id == tty to run on, or empty for /dev/console
# runlevels == ignored
# action == one of sysinit, respawn, askfirst, wait, and once
# process == program to run

# Startup the system
null::sysinit:/bin/mount -t proc proc /proc
null::sysinit:/bin/mount -o remount,rw / # REMOUNT_ROOTFS_RW
null::sysinit:/bin/mkdir -p /dev/pts
null::sysinit:/bin/mkdir -p /dev/shm
null::sysinit:/bin/mount -a
null::sysinit:/bin/hostname -F /etc/hostname
# now run any rc scripts
::sysinit:/etc/init.d/rcS

# Put a getty on the serial port
ttyS0::respawn:/sbin/getty -L ttyS0 115200 vt100 # GENERIC_SERIAL

# Stuff to do for the 3-finger salute
::ctrlaltdel:/sbin/reboot

# Stuff to do before rebooting
null::shutdown:/etc/init.d/rcK
null::shutdown:/bin/umount -a -r
null::shutdown:/sbin/swapoff -a

//============================

ls -l:

drwxr-xr-x 2 root root 4096 2013-08-05 15:23 bin
drwxr-xr-x 5 root root 4096 2013-08-05 15:23 dev
drwxr-xr-x 5 root root 4096 2013-08-05 15:23 etc
drwxr-xr-x 4 root root 4096 2013-08-05 15:23 home
lrwxrwxrwx 1 root root 9 2013-08-05 15:23 init -> sbin/init
drwxr-xr-x 2 root root 4096 2013-08-05 15:23 lib
lrwxrwxrwx 1 root root 11 2013-08-05 14:52 linuxrc -> bin/busybox
drwxr-xr-x 2 root root 4096 2013-08-05 14:04 mnt
drwxr-xr-x 2 root root 4096 2013-08-05 14:04 opt
drwxr-xr-x 2 root root 4096 2013-08-05 14:04 proc
drwxr-xr-x 2 root root 4096 2013-08-05 14:04 root
lrwxrwxrwx 1 root root 3 2013-08-05 14:04 run -> tmp
drwxr-xr-x 2 root root 4096 2013-08-05 15:23 sbin
drwxr-xr-x 2 root root 4096 2013-08-05 14:04 sys
drwxrwxrwt 3 root root 4096 2013-08-05 15:23 tmp
drwxr-xr-x 7 root root 4096 2013-08-05 15:23 usr
drwxr-xr-x 3 root root 4096 2013-08-02 15:05 var
Спуститься к концу Подняться к началу
Персональная информация
esp23
Добавлено 05.08.2013 16:14 Редактировалось 05.08.2013 16:14 Сообщение: 9
esp23
0

Пункты: 1090
Регистрация: 19.06.2013
попробовал все заново сделать и стало виснуть вот сдесь:


NAND read: device 0 offset 0x60000, size 0x780000
7864320 bytes read: OK
## Booting kernel from Legacy Image at 20400000 ...
Image Name: Linux Kernel Image
Image Type: ARM Linux Kernel Image (gzip compressed)
Data Size: 1685332 Bytes = 1.6 MB
Load Address: 20008000
Entry Point: 20008000
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK

Starting kernel ...

Linux version 2.6.28 (user@vm) (gcc version 4.2.0 20070413 (prerelease) (CodeSourcery Sourcery G++ Lite 2007q1-10)) #52 Mon Aug 5 11:36:10 MSD 2013
CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177
CPU: VIVT data cache, VIVT instruction cache
Machine: Starterkit.ru SK-AT91SAM9XXXXX-SIMXXX
Memory policy: ECC disabled, Data cache writeback
Clocks: CPU 200 MHz, master 100 MHz, main 12.000 MHz
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 8128
Kernel command line: console=ttyS0,115200 root=/dev/sda1 rootwait
AT91: 96 gpio irqs in 3 banks
PID hash table entries: 128 (order: 7, 512 bytes)
Console: colour dummy device 80x30
console [ttyS0] enabled
Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
Memory: 32MB = 32MB total
Memory: 28960KB available (3128K code, 230K data, 116K init)
Calibrating delay loop... 99.73 BogoMIPS (lpj=498688)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
net_namespace: 288 bytes
NET: Registered protocol family 16
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 1024 (order: 1, 8192 bytes)
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
TCP: Hash tables configured (established 1024 bind 1024)
TCP reno registered
NET: Registered protocol family 1
NetWinder Floating Point Emulator V0.97 (double precision)
JFFS2 version 2.2. (NAND) (SUMMARY) б&#9560; 2001-2006 Red Hat, Inc.
yaffs Mar 27 2010 12:35:28 Installing.
msgmni has been set to 56
io scheduler noop registered (default)
atmel_usart.0: ttyS0 at MMIO 0xfefff200 (irq = 1) is a ATMEL_SERIAL
atmel_usart.1: ttyS1 at MMIO 0xfffb0000 (irq = 6) is a ATMEL_SERIAL
atmel_usart.2: ttyS2 at MMIO 0xfffb8000 (irq = 8) is a ATMEL_SERIAL
brd: module loaded
loop: module loaded
ssc ssc.0: Atmel SSC device at 0xc2878000 (irq 14)
MACB_mii_bus: probed
eth0: Atmel MACB at 0xfffc4000 irq 21 (00:1f:f2:00:00:00)
eth0: attached PHY driver [Generic PHY] (mii_bus:phy_addr=ffffffff:01, irq=-1)
Driver 'sd' needs updating - please use bus_type methods
NAND device: Manufacturer ID: 0xec, Chip ID: 0xda (Samsung NAND 256MiB 3,3V 8-bit)
Scanning device for bad blocks
Bad eraseblock 87 at 0x00ae0000
Bad eraseblock 163 at 0x01460000
Bad eraseblock 261 at 0x020a0000
Bad eraseblock 688 at 0x05600000
Bad eraseblock 719 at 0x059e0000
Bad eraseblock 1080 at 0x08700000
Creating 2 MTD partitions on "atmel_nand":
0x00000000-0x00800000 : "Partition 1"
0x00800000-0x10000000 : "Partition 2"
atmel_spi atmel_spi.1: Atmel SPI Controller at 0xfffcc000 (irq 13)
usbmon: debugfs is not available
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
at91_ohci at91_ohci: AT91 OHCI
at91_ohci at91_ohci: new USB bus registered, assigned bus number 1
at91_ohci at91_ohci: irq 20, io mem 0x00500000
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
udc: at91_udc version 3 May 2006
mice: PS/2 mouse device common for all mice
i2c /dev entries driver
i2c-gpio i2c-gpio: using pins 55 (SDA) and 56 (SCL)
usbcore: registered new interface driver usbhid
usbhid: v2.6:USB HID core driver
Advanced Linux Sound Architecture Driver Version 1.0.18rc3.
tlv320aic23b spi1.0: tlv320aic23b: supported bitrate is 47348 (66 divider)
mmc0: host does not support reading read-only switch. assuming write-enable.
mmc0: new SD card at address 1234
mmcblk0: mmc0:1234 SA02G 1.85 GiB
mmcblk0:<7>mmc0: starting CMD18 arg 00000000 flags 000000b5
ALSA device list:
#0: AT91SAM9260 external CODEC on irq 14
TCP cubic registered
NET: Registered protocol family 17
unknown partition table
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
Waiting for root device /dev/sda1...
usb 1-1: new full speed USB device using at91_ohci and address 2
usb 1-1: configuration #1 chosen from 1 choice
scsi0 : SCSI emulation for USB Mass Storage devices
scsi 0:0:0:0: Direct-Access JetFlash Transcend 8GB 8.07 PQ: 0 ANSI: 4
sd 0:0:0:0: [sda] 15734784 512-byte hardware sectors: (8.05 GB/7.50 GiB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Assuming drive cache: write through
sd 0:0:0:0: [sda] 15734784 512-byte hardware sectors: (8.05 GB/7.50 GiB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Assuming drive cache: write through
sda: sda1
sd 0:0:0:0: [sda] Attached SCSI removable disk
EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended
VFS: Mounted root (ext2 filesystem).
Freeing init memory: 116K

и тоже тишина
Спуститься к концу Подняться к началу
Персональная информация
esp23
Добавлено 06.08.2013 12:32 Сообщение: 10
esp23
0

Пункты: 1090
Регистрация: 19.06.2013
Есть вопрос я переношу руками директории рутовой фс из buildroot/output/target. А нельзя на флешку поместить образ КФС и его подмонтировать ? Если можно то подскажите как?Может это поможет
Спуститься к концу Подняться к началу
Персональная информация
Форум » starterkit.ru » Embedded Linux