TI AR7 7200 - no boot
I build kernel 2.6.33 for TI AR7 cpu 7200 version.
boot halt on console init stage/
gcc 4.3.3
==============================
linwork:/opt/mipsel32/usr/bin# ./mipsel-linux-gcc-4.3.3 -v Using built-in specs. Target: mipsel-uclibc-linux Configured with: /Acorp/buildroot-2010.02-rc1/output/toolchain/gcc-4.3.3/configure --prefix=/usr --build=i386-cross-linux-uclibc --host=i386-cross-linux-uclibc --target=mipsel-uclibc-linux --enable-languages=c,c++ --with-sysroot=/opt/mipsel32/ --with-build-time-tools=/opt/mipsel32//usr/mipsel-uclibc-linux/bin --disable-__cxa_atexit --enable-target-optspace --with-gnu-ld --disable-libssp --enable-tls --enable-shared --with-gmp=/Acorp/buildroot-2010.02-rc1/output/toolchain/gmp --with-mpfr=/Acorp/buildroot-2010.02-rc1/output/toolchain/mpfr --disable-nls --enable-threads --disable-multilib --disable-decimal-float --with-abi=32 --with-tune=mips1 --disable-largefile --with-endian=little,big --with-pkgversion='Buildroot 2010.02-rc1' --with-bugurl=http://bugs.buildroot.net/ : (reconfigured) /Acorp/buildroot-2010.02-rc1/output/toolchain/gcc-4.3.3/configure --prefix=/usr --build=i386-cross-linux-uclibc --host=i386-cross-linux-uclibc --target=mipsel-uclibc-linux --enable-languages=c,c++ --with-sysroot=/opt/mipsel32/ --with-build-time-tools=/opt/mipsel32//usr/mipsel-uclibc-linux/bin --disable-__cxa_atexit --enable-target-optspace --with-gnu-ld --disable-libssp --enable-tls --enable-shared --with-gmp=/Acorp/buildroot-2010.02-rc1/output/toolchain/gmp --with-mpfr=/Acorp/buildroot-2010.02-rc1/output/toolchain/mpfr --disable-nls --enable-threads --disable-multilib --disable-decimal-float --with-abi=32 --with-tune=mips1 --disable-largefile --with-pkgversion='Buildroot 2010.02-rc1' --with-bugurl=http://bugs.buildroot.net/ Thread model: posix gcc version 4.3.3 (Buildroot 2010.02-rc1) =========== kernel cfg
CONFIG_MIPS=y
CONFIG_AR7=yCONFIG_LOONGSON_UART_BASE=yCONFIG_RWSEM_GENERIC_SPINLOCK=yCONFIG_ARCH_SUPPORTS_OPROFILE=yCONFIG_GENERIC_FIND_NEXT_BIT=yCONFIG_GENERIC_HWEIGHT=yCONFIG_GENERIC_CALIBRATE_DELAY=yCONFIG_GENERIC_CLOCKEVENTS=yCONFIG_GENERIC_TIME=yCONFIG_GENERIC_CMOS_UPDATE=yCONFIG_SCHED_OMIT_FRAME_POINTER=yCONFIG_GENERIC_HARDIRQS_NO__DO_IRQ=yCONFIG_BOOT_RAW=yCONFIG_CEVT_R4K_LIB=yCONFIG_CEVT_R4K=yCONFIG_CSRC_R4K_LIB=yCONFIG_CSRC_R4K=yCONFIG_DMA_NONCOHERENT=yCONFIG_DMA_NEED_PCI_MAP_STATE=yCONFIG_SYS_HAS_EARLY_PRINTK=yCONFIG_GENERIC_GPIO=yCONFIG_CPU_LITTLE_ENDIAN=yCONFIG_SYS_SUPPORTS_LITTLE_ENDIAN=yCONFIG_IRQ_CPU=yCONFIG_NO_EXCEPT_FILL=yCONFIG_SWAP_IO_SPACE=yCONFIG_MIPS_L1_CACHE_SHIFT=5
CONFIG_CPU_MIPS32_R1=yCONFIG_SYS_SUPPORTS_ZBOOT=yCONFIG_SYS_SUPPORTS_ZBOOT_UART16550=yCONFIG_SYS_HAS_CPU_MIPS32_R1=yCONFIG_CPU_MIPS32=yCONFIG_CPU_MIPSR1=yCONFIG_SYS_SUPPORTS_32BIT_KERNEL=yCONFIG_CPU_SUPPORTS_32BIT_KERNEL=yCONFIG_HARDWARE_WATCHPOINTS=y
CONFIG_32BIT=yCONFIG_PAGE_SIZE_4KB=yCONFIG_CPU_HAS_PREFETCH=y CONFIG_MIPS_MT_DISABLED=yCONFIG_CPU_HAS_SYNC=yCONFIG_GENERIC_HARDIRQS=y CONFIG_GENERIC_IRQ_PROBE=y CONFIG_CPU_SUPPORTS_HIGHMEM=y CONFIG_ARCH_FLATMEM_ENABLE=y CONFIG_ARCH_POPULATES_NODE_MAP=y CONFIG_SELECT_MEMORY_MODEL=y CONFIG_FLATMEM_MANUAL=yCONFIG_FLATMEM=yCONFIG_FLAT_NODE_MEM_MAP=y CONFIG_PAGEFLAGS_EXTENDED=y CONFIG_SPLIT_PTLOCK_CPUS=4CONFIG_ZONE_DMA_FLAG=0CONFIG_VIRT_TO_BUS=y CONFIG_DEFAULT_MMAP_MIN_ADDR=4096 CONFIG_GENERIC_CLOCKEVENTS_BUILD=yCONFIG_HZ_250=yCONFIG_SYS_SUPPORTS_ARBIT_HZ=yCONFIG_HZ=250CONFIG_PREEMPT_NONE=yCONFIG_SECCOMP=yCONFIG_LOCKDEP_SUPPORT=y CONFIG_STACKTRACE_SUPPORT=y CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config" CONFIG_CONSTRUCTORS=y
# General setupCONFIG_EXPERIMENTAL=yCONFIG_BROKEN_ON_SMP=yCONFIG_INIT_ENV_ARG_LIMIT=32CONFIG_LOCALVERSION=""CONFIG_HAVE_KERNEL_GZIP=yCONFIG_HAVE_KERNEL_BZIP2=yCONFIG_HAVE_KERNEL_LZMA=yCONFIG_HAVE_KERNEL_LZO=yCONFIG_KERNEL_LZMA=yCONFIG_SYSVIPC=yCONFIG_SYSVIPC_SYSCTL=y
# RCU SubsystemCONFIG_TINY_RCU=yCONFIG_LOG_BUF_SHIFT=17CONFIG_GROUP_SCHED=yCONFIG_FAIR_GROUP_SCHED=yCONFIG_USER_SCHED=yCONFIG_CC_OPTIMIZE_FOR_SIZE=yCONFIG_SYSCTL=yCONFIG_ANON_INODES=yCONFIG_EMBEDDED=yCONFIG_SYSCTL_SYSCALL=yCONFIG_KALLSYMS=yCONFIG_HOTPLUG=yCONFIG_PRINTK=yCONFIG_BASE_FULL=yCONFIG_FUTEX=yCONFIG_EPOLL=yCONFIG_SIGNALFD=yCONFIG_TIMERFD=yCONFIG_EVENTFD=yCONFIG_SHMEM=yCONFIG_AIO=y
# Kernel Performance Events And CountersCONFIG_SLAB=yCONFIG_HAVE_OPROFILE=y
# GCOV-based kernel profilingCONFIG_SLOW_WORK=yCONFIG_HAVE_GENERIC_DMA_COHERENT=yCONFIG_SLABINFO=yCONFIG_RT_MUTEXES=yCONFIG_BASE_SMALL=0CONFIG_MODULES=yCONFIG_MODULE_FORCE_LOAD=yCONFIG_INLINE_SPIN_UNLOCK=yCONFIG_INLINE_SPIN_UNLOCK_IRQ=yCONFIG_INLINE_READ_UNLOCK=yCONFIG_INLINE_READ_UNLOCK_IRQ=yCONFIG_INLINE_WRITE_UNLOCK=yCONFIG_INLINE_WRITE_UNLOCK_IRQ=y
# Bus options (PCI, PCMCIA, EISA, ISA, TC)CONFIG_MMU=y
# Executable file formatsCONFIG_BINFMT_ELF=yCONFIG_BINFMT_MISC=yCONFIG_TRAD_SIGNALS=y
# Power management optionsCONFIG_ARCH_HIBERNATION_POSSIBLE=yCONFIG_ARCH_SUSPEND_POSSIBLE=y
# Device Drivers
# Generic Driver OptionsCONFIG_UEVENT_HELPER_PATH="/sbin/hotplug"CONFIG_MTD=yCONFIG_MTD_DEBUG=yCONFIG_MTD_DEBUG_VERBOSE=0
# CONFIG_MTD_TESTS is not set
# CONFIG_MTD_CONCAT is not setCONFIG_MTD_PARTITIONS=yCONFIG_MTD_AR7_PARTS=y
# RAM/ROM/Flash chip driversCONFIG_MTD_MAP_BANK_WIDTH_1=yCONFIG_MTD_MAP_BANK_WIDTH_2=yCONFIG_MTD_MAP_BANK_WIDTH_4=yCONFIG_MTD_CFI_I1=yCONFIG_MTD_CFI_I2=y
# Input device supportCONFIG_INPUT=y
# Character devicesCONFIG_VT=yCONFIG_HW_CONSOLE=y
# Serial driversCONFIG_SERIAL_8250=yCONFIG_SERIAL_8250_CONSOLE=yCONFIG_SERIAL_8250_NR_UARTS=2CONFIG_SERIAL_8250_RUNTIME_UARTS=2
# Non-8250 serial port supportCONFIG_SERIAL_CORE=yCONFIG_SERIAL_CORE_CONSOLE=yCONFIG_UNIX98_PTYS=yCONFIG_DEVPTS_MULTIPLE_INSTANCES=yCONFIG_LEGACY_PTYS=yCONFIG_LEGACY_PTY_COUNT=256
# PPS supportCONFIG_PPS=yCONFIG_PPS_DEBUG=yCONFIG_WATCHDOG=yCONFIG_WATCHDOG_NOWAYOUT=y
# Watchdog Device DriversCONFIG_AR7_WDT=yCONFIG_SSB_POSSIBLE=y
# Console display driver supportCONFIG_DUMMY_CONSOLE=yCONFIG_ACCESSIBILITY=yCONFIG_RTC_LIB=yCONFIG_RTC_CLASS=yCONFIG_RTC_DEBUG=y
# RTC interfacesCONFIG_RTC_INTF_SYSFS=yCONFIG_RTC_INTF_PROC=yCONFIG_RTC_INTF_DEV=yCONFIG_RTC_INTF_DEV_UIE_EMUL=yCONFIG_RTC_DRV_TEST=y
# on-CPU RTC driversCONFIG_AUXDISPLAY=yCONFIG_UIO=y
# TI VLYNQCONFIG_VLYNQ=yCONFIG_STAGING=yCONFIG_STAGING_EXCLUDE_BUILD=y
# File systemsCONFIG_FILE_LOCKING=yCONFIG_FSNOTIFY=yCONFIG_DNOTIFY=yCONFIG_INOTIFY=yCONFIG_INOTIFY_USER=yCONFIG_AUTOFS_FS=yCONFIG_AUTOFS4_FS=y
# CachesCONFIG_FSCACHE=yCONFIG_FSCACHE_DEBUG=y
# Pseudo filesystemsCONFIG_PROC_FS=yCONFIG_PROC_SYSCTL=yCONFIG_PROC_PAGE_MONITOR=yCONFIG_SYSFS=y
# Kernel hackingCONFIG_TRACE_IRQFLAGS_SUPPORT=yCONFIG_ENABLE_WARN_DEPRECATED=yCONFIG_ENABLE_MUST_CHECK=yCONFIG_FRAME_WARN=1024CONFIG_UNUSED_SYMBOLS=yCONFIG_DEBUG_MEMORY_INIT=yCONFIG_HAVE_FUNCTION_TRACER=yCONFIG_HAVE_FUNCTION_GRAPH_TRACER=yCONFIG_HAVE_FUNCTION_TRACE_MCOUNT_TEST=yCONFIG_HAVE_DYNAMIC_FTRACE=yCONFIG_HAVE_FTRACE_MCOUNT_RECORD=yCONFIG_TRACING_SUPPORT=yCONFIG_HAVE_ARCH_KGDB=yCONFIG_EARLY_PRINTK=yCONFIG_CMDLINE_BOOL=yCONFIG_CMDLINE="earlyprintk=ttyS0,9600n,keep"
# Security optionsCONFIG_DEFAULT_SECURITY_DAC=yCONFIG_DEFAULT_SECURITY=""CONFIG_CRYPTO=y
# Crypto core or helperCONFIG_CRYPTO_ALGAPI=yCONFIG_CRYPTO_ALGAPI2=yCONFIG_CRYPTO_AEAD2=yCONFIG_CRYPTO_BLKCIPHER=yCONFIG_CRYPTO_BLKCIPHER2=yCONFIG_CRYPTO_HASH=yCONFIG_CRYPTO_HASH2=yCONFIG_CRYPTO_RNG2=yCONFIG_CRYPTO_PCOMP=yCONFIG_CRYPTO_MANAGER=yCONFIG_CRYPTO_MANAGER2=yCONFIG_CRYPTO_NULL=yCONFIG_CRYPTO_WORKQUEUE=y
# Hash modesCONFIG_CRYPTO_HMAC=y
# DigestCONFIG_CRYPTO_CRC32C=yCONFIG_CRYPTO_MD4=yCONFIG_CRYPTO_MD5=yCONFIG_CRYPTO_SHA1=y
# CiphersCONFIG_CRYPTO_AES=y
# CompressionCONFIG_CRYPTO_DEFLATE=yCONFIG_CRYPTO_ZLIB=yCONFIG_CRYPTO_LZO=y
# Library routinesCONFIG_BITREVERSE=yCONFIG_GENERIC_FIND_LAST_BIT=yCONFIG_CRC_CCITT=yCONFIG_CRC16=yCONFIG_CRC_T10DIF=yCONFIG_CRC_ITU_T=yCONFIG_CRC32=yCONFIG_CRC7=yCONFIG_LIBCRC32C=yCONFIG_ZLIB_INFLATE=yCONFIG_ZLIB_DEFLATE=yCONFIG_LZO_COMPRESS=yCONFIG_LZO_DECOMPRESS=yCONFIG_HAS_IOMEM=yCONFIG_HAS_IOPORT=yCONFIG_HAS_DMA=yCONFIG_NLATTR=y
===========
booting process:
===========
(psbl)
Booting...
Linux version 2.6.33 (root@linwork) (gcc version 4.3.3 (Buildroot 2010.02-rc1) ) #1 Wed Mar 3 15:31:18 OMST 2010 bootconsole [early0] enabled
CPU revision is: 00018448 (MIPS 4KEc)
TI AR7 (TNETD7200), ID: 0x002b, Revision: 0x11 Determined physical RAM map:
memory: 01000000 @ 14000000 (usable)
Zone PFN ranges:
Normal 0x00014000 -> 0x00015000
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
0: 0x00014000 -> 0x00015000
Built 1 zonelists in Zone order, mobility grouping off. Total pages: 4064 Kernel command line: console=ttyS0,9600n8 earlyprintk=ttyS0,9600 PID hash table entries: 64 (order: -4, 256 bytes)
Dentry cache hash table entries: 2048 (order: 1, 8192 bytes) Inode-cache hash table entries: 1024 (order: 0, 4096 bytes) Primary instruction cache 16kB, VIPT, 4-way, linesize 16 bytes. Primary data cache 8kB, 4-way, VIPT, no aliases, linesize 16 bytes
Memory: 13164k/16384k available (1325k kernel code, 3220k reserved, 408k data, 120k init, 0k highmem)
NR_IRQS:256
Console: colour dummy device 80x25
==============
stop booting...
what wrong ????
kernels from open-wrt booting with log:
==============================
(psbl)
Booting...
Linux version 2.6.26.8 (agb@arrakis) (gcc version 4.1.2) #1 Wed Dec 2 15:14:35 UTC 2009
console [early0] enabled
CPU revision is: 00018448 (MIPS 4KEc)
Clocks: Sync 2:1 mode
Clocks: Setting CPU clock
Adjusted requested frequency 211000000 to 211968000
Clocks: base = 35328000, frequency = 211968000, prediv = 1, postdiv = 1, postdiv2 = -1, mul = 6
Clocks: Setting DSP clock
Clocks: base = 25000000, frequency = 105984000, prediv = 1, postdiv = 2, postdiv2 = 1, mul = 10
Clocks: Setting USB clock
Adjusted requested frequency 48000000 to 47863741
Clocks: base = 105984000, frequency = 48000000, prediv = 1, postdiv = 31, postdiv2 = -1, mul = 14
TI AR7 (TNETD7200), ID: 0x002b, Revision: 0x11
Determined physical RAM map:
memory: 01000000 @ 14000000 (usable)
Initrd not found or empty - disabling initrd
Zone PFN ranges:
Normal 81920 -> 86016
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
0: 81920 -> 86016
Built 1 zonelists in Zone order, mobility grouping off. Total pages: 4064 Kernel command line: init=/etc/preinit rootfstype=squashfs,jffs2, console=ttyS0,9600n8
Primary instruction cache 16kB, VIPT, 4-way, linesize 16 bytes. Primary data cache 8kB, 4-way, VIPT, no aliases, linesize 16 bytes PID hash table entries: 64 (order: 6, 256 bytes)
Dentry cache hash table entries: 2048 (order: 1, 8192 bytes) Inode-cache hash table entries: 1024 (order: 0, 4096 bytes)
Memory: 12560k/16384k available (2001k kernel code, 3824k reserved, 417k data, 124k init, 0k highmem)
SLUB: Genslabs=6, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1 Mount-cache hash table entries: 512net_namespace: 644 bytes
NET: Registered protocol family 16
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes) TCP established hash table entries: 512 (order: 0, 4096 bytes) TCP bind hash table entries: 512 (order: -1, 2048 bytes)
TCP: Hash tables configured (established 512 bind 512)
TCP reno registered
NET: Registered protocol family 1
squashfs: version 3.0 (2006/03/15) Phillip Lougher
Registering mini_fo version $Id$
JFFS2 version 2.2. (NAND) (SUMMARY) © 2001-2006 Red Hat, Inc. msgmni has been set to 24
io scheduler noop registered
io scheduler deadline registered (default)
Serial: 8250/16550 driver $Revision: 1.90 $ 2 ports, IRQ sharing disabled
serial8250: ttyS0 at MMIO 0x8610e00 (irq = 15) is a TI-AR7
Signature · 2 lines
View this message in context: http://old.nabble.com/TI-AR7-7200---no-boot-tp27766331p27766331.html Sent from the linux-mips main mailing list archive at Nabble.com.
Hi,
Quoted 3 lines · On Wednesday 03 March 2010 11:11:31 Dea_RU wrote:
I build kernel 2.6.33 for TI AR7 cpu 7200 version.
boot halt on console init stage/
[snip]
Quoted 16 lines
CONFIG_MIPS=y
CONFIG_AR7=yCONFIG_LOONGSON_UART_BASE=yCONFIG_RWSEM_GENERIC_SPINLOCK=yCONFIG_ARCH_SUPPORTS_OPROFILE=yCONFIG_GENERIC_FIND_NEXT_BIT=yCONFIG_GENERIC_HWEIGHT=yCONFIG_GENERIC_CALIBRATE_DELAY=yCONFIG_GENERIC_CLOCKEVENTS=yCONFIG_GENERIC_TIME=yCONFIG_GENERIC_CMOS_UPDATE=yCONFIG_SCHED_OMIT_FRAME_POINTER=yCONFIG_GENERIC_HARDIRQS_NO__DO_IRQ=yCONFIG_BOOT_RAW=y
[snip]
Quoted 54 lines
what wrong ????
kernels from open-wrt booting with log:
==============================
(psbl)Booting...
Linux version 2.6.26.8 (agb@arrakis) (gcc version 4.1.2) #1 Wed Dec 2 15:14:35 UTC 2009
console [early0] enabled
CPU revision is: 00018448 (MIPS 4KEc)
Clocks: Sync 2:1 mode
Clocks: Setting CPU clock
Adjusted requested frequency 211000000 to 211968000
Clocks: base = 35328000, frequency = 211968000, prediv = 1, postdiv = 1, postdiv2 = -1, mul = 6
Clocks: Setting DSP clock
Clocks: base = 25000000, frequency = 105984000, prediv = 1, postdiv = 2, postdiv2 = 1, mul = 10
Clocks: Setting USB clock
Adjusted requested frequency 48000000 to 47863741
Clocks: base = 105984000, frequency = 48000000, prediv = 1, postdiv = 31, postdiv2 = -1, mul = 14
TI AR7 (TNETD7200), ID:0x002b, Revision:0x11
Determined physical RAM map:
memory: 01000000 @ 14000000 (usable)
Initrd not found or empty - disabling initrd
Zone PFN ranges:
Normal 81920 -> 86016
Movable zone start PFN for each node
early_node_map[1] active PFN ranges0: 81920 -> 86016Built 1 zonelists in Zone order, mobility grouping off. Total pages: 4064 Kernel command line: init=/etc/preinit rootfstype=squashfs,jffs2, console=ttyS0,9600n8
Primary instruction cache 16kB, VIPT, 4-way, linesize 16 bytes. Primary data cache 8kB, 4-way, VIPT, no aliases, linesize 16 bytes PID hash table entries: 64 (order: 6, 256 bytes)
Dentry cache hash table entries: 2048 (order: 1, 8192 bytes) Inode-cache hash table entries: 1024 (order: 0, 4096 bytes)
Memory: 12560k/16384k available (2001k kernel code, 3824k reserved, 417k data, 124k init, 0k highmem)
SLUB: Genslabs=6, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1 Mount-cache hash table entries: 512net_namespace: 644 bytes
NET: Registered protocol family 16
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes) TCP established hash table entries: 512 (order: 0, 4096 bytes) TCP bind hash table entries: 512 (order: -1, 2048 bytes)
TCP: Hash tables configured (established 512 bind 512)
TCP reno registered
NET: Registered protocol family 1
Quoted 9 lines
squashfs: version 3.0 (2006/03/15) Phillip Lougher Registering
mini_foversion $Id$
JFFS2 version 2.2. (NAND) (SUMMARY) © 2001-2006 Red Hat, Inc. msgmni has been set to 24
io scheduler noop registered
io scheduler deadline registered (default)
Serial: 8250/16550 driver $Revision: 1.90 $ 2 ports, IRQ sharing disabled
serial8250: ttyS0 at MMIO0x8610e00(irq = 15) is a TI-AR7
You have one of these devices with bogus UART, (there are quite some out there) can you try with the following patch and tell me if that gives you an usable console:
arch/mips/ar7/platform.c +2 -0
@@ -551,6 +551,7 @@ static int __init ar7_register_uarts(void) uart_port.irq =AR7_IRQ_UART0 ; uart_port.mapbase =AR7_REGS_UART0 ; uart_port.membase =ioremap (uart_port.mapbase,256 ); + uart_port.flags =UPF_IOREMAP |UPF_BOOT_AUTOCONF ; res =early_serial_setup (&uart_port);if (res)
@@ -562,6 +563,7 @@ static int __init ar7_register_uarts(void) uart_port.irq =AR7_IRQ_UART1 ; uart_port.mapbase =UR8_REGS_UART1 ; uart_port.membase =ioremap (uart_port.mapbase,256 ); + uart_port.flags =UPF_IOREMAP |UPF_BOOT_AUTOCONF ; res =early_serial_setup (&uart_port);if (res)
Thanks.
Signature · 1 line
Regards, Florian
Quoted 29 lines · Florian Fainelli-4 wrote:
Hi,
You have one of these devices with bogus UART, (there are quite some out there)
can you try with the following patch and tell me if that gives you an usable console:arch/mips/ar7/platform.c +2
-0@@ -551,6 +551,7 @@ static int __init ar7_register_uarts(void) uart_port.irq =AR7_IRQ_UART0 ; uart_port.mapbase =AR7_REGS_UART0 ; uart_port.membase =ioremap (uart_port.mapbase,256 ); + uart_port.flags =UPF_IOREMAP |UPF_BOOT_AUTOCONF ; res =early_serial_setup (&uart_port);if (res)@@ -562,6 +563,7 @@ static int __init ar7_register_uarts(void) uart_port.irq =AR7_IRQ_UART1 ; uart_port.mapbase =UR8_REGS_UART1 ; uart_port.membase =ioremap (uart_port.mapbase,256 ); + uart_port.flags =UPF_IOREMAP |UPF_BOOT_AUTOCONF ; res =early_serial_setup (&uart_port);if (res)
Quoted 4 lines
Thanks.
Signature · 1 line
Regards, Florian
after remark printk with message console color line 2927 /drivers/char/vt.c
boot process stop with:
====================
....
Primary data cache 8kB, 4-way, VIPT, no aliases, linesize 16 bytes
Memory: 13172k/16384k available (1314k kernel code, 3212k reserved, 411k data, 120k init, 0k highmem)
NR_IRQS:256
Calibrating delay loop...
===============
next freeze on delay loop clculation !? IRQ not init correctly ???
maby after send byte over USART cpu set flag "USART TX buffer cleared"? and kernel go to interput vector ???
=========
in kernel src 2.6.33 from mips.org patch based code not present ! /arch/mips/ar7/platform.c
i added port number flags for version 2.6.33 ....
uart_port[0].flags = UPF_IOREMAP | UPF_BOOT_AUTOCONF; uart_port[1].flags = UPF_IOREMAP | UPF_BOOT_AUTOCONF;
==============
after added flags and remark console collor booting stop with:
......
Primary data cache 8kB, 4-way, VIPT, no aliases, linesize 16 bytes
Memory: 13172k/16384k available (1314k kernel code, 3212k reserved, 411k data, 120k init, 0k highmem)
NR_IRQS:256
Calibrating delay loop...
Signature · 2 lines
View this message in context: http://old.nabble.com/TI-AR7-7200---no-boot-tp27766331p27766728.html Sent from the linux-mips main mailing list archive at Nabble.com.
i adder printk(...) before all function in kernel init funktion /init/main.c
log show last message before called fundtion local_irq_enable().
If delete my debug printk-s kernel stop after first console output "Calibrating delay loop... "
I do not MIPS arch interput specific ..... Can be MIPS need init internel timer and link overflow flag to interput ??
------ log with added printk ----
......
Memory: 13172k/16384k available (1314k kernel code, 3212k reserved, 411k data, 120k init, 0k highmem)early_irq_init
NR_IRQS:256 <- kernelinit_IRQprio_tree_initinit_timershrtimers_initsoftirq_inittimerkepping_init
time initprofile_initearly_boot_irqs_onlocal_irq_enable <- last my debug printk message before call to local_irq_enable()
-------------------------------
Signature · 2 lines
View this message in context: http://old.nabble.com/TI-AR7-7200---no-boot-tp27766331p27767861.html Sent from the linux-mips main mailing list archive at Nabble.com.
Quoted 10 lines · On Wednesday 03 March 2010 13:58:48 Dea_RU wrote:
i adder printk(...) before all function in kernel init funktion
/init/main.clog show last message before called fundtion
local_irq_enable().If delete my debug printk-s kernel stop after first console output "Calibrating delay loop... "
I do not MIPS arch interput specific ..... Can be MIPS need init internel timer and link overflow flag to interput ??
All handlers are not correctly setup, so you should include this patch in your tree:
http://www.linux-mips.org/archives/linux-mips/2010-01/msg00019.html
Quoted 21 lines
------ log with added printk ----
......
Memory: 13172k/16384k available (1314k kernel code, 3212k reserved, 411k data, 120k init, 0k highmem)early_irq_init
NR_IRQS:256 <- kernelinit_IRQprio_tree_initinit_timershrtimers_initsoftirq_inittimerkepping_init
time initprofile_initearly_boot_irqs_onlocal_irq_enable<- last my debug printk message before call tolocal_irq_enable()
-------------------------------
Signature · 1 line
Regards, Florian
it work !
great work !
why this patch not present in src 2.6.33 ???
============ log
(psbl)
Booting...
Linux version 2.6.33 (root@linwork) (gcc version 4.3.3 (Buildroot 2010.02-rc1) ) #13 Wed Mar 3 20:04:20 OMST 2010 bootconsole [early0] enabled
CPU revision is: 00018448 (MIPS 4KEc)
TI AR7 (TNETD7200), ID: 0x002b, Revision: 0x11 Determined physical RAM map:
memory: 01000000 @ 14000000 (usable)
Zone PFN ranges:
Normal 0x00014000 -> 0x00015000
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
0: 0x00014000 -> 0x00015000
Built 1 zonelists in Zone order, mobility grouping off. Total pages: 4064 Kernel command line: console=ttyS0,9600n8 earlyprintk=ttyS0,9600 PID hash table entries: 64 (order: -4, 256 bytes)
Dentry cache hash table entries: 2048 (order: 1, 8192 bytes) Inode-cache hash table entries: 1024 (order: 0, 4096 bytes) Primary instruction cache 16kB, VIPT, 4-way, linesize 16 bytes. Primary data cache 8kB, 4-way, VIPT, no aliases, linesize 16 bytes
Memory: 13172k/16384k available (1316k kernel code, 3212k reserved, 409k data, 120k init, 0k highmem)
NR_IRQS:256
Console: colour dummy device 80x25
Calibrating delay loop... 149.50 BogoMIPS (lpj=299008) Mount-cache hash table entries: 512rest_init
Clocks: Sync 2:1 mode
Clocks: Setting CPU clock
Adjusted requested frequency 211000000 to 211968000
Clocks: base = 35328000, frequency = 211968000, prediv = 1, postdiv = 1, postdiv2 = -1, mul = 6
Clocks: Setting DSP clock
Clocks: base = 25000000, frequency = 105984000, prediv = 1, postdiv = 2, postdiv2 = 1, mul = 10
Clocks: Setting USB clock
Adjusted requested frequency 48000000 to 47863741
Clocks: base = 105984000, frequency = 48000000, prediv = 1, postdiv = 31, postdiv2 = -1, mul = 14
LinuxPPS API ver. 1 registered
Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <[email protected]>
Switching to clocksource MIPS
Slow work thread pool: Starting up
Slow work thread pool: Ready
FS-Cache: Loaded
msgmni has been set to 25
alg: No test for cipher_null (cipher_null-generic)
alg: No test for ecb(cipher_null) (ecb-cipher_null)
alg: No test for digest_null (digest_null-generic)
alg: No test for compress_null (compress_null-generic)
alg: No test for stdrng (krng)
Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
serial8250: ttyS0 at MMIO 0x8610e00 (irq = 15) is a XScale
Ã}q™ya)¶‰/½¾£Ö ².W,XvÍ!a™,Ó¯\“×
---------- can not select USART options for show it ...
Signature · 2 lines
View this message in context: http://old.nabble.com/TI-AR7-7200---no-boot-tp27766331p27768844.html Sent from the linux-mips main mailing list archive at Nabble.com.
I show this rtunk left 10 day....
and patch src 2.6.33 from dir root/trunk/target/linux/ar7/patches-2.6.32
to day i see :
florian: [ar7] add missing patch to arch/mips/kernel/traps.c to allow ar7 to setup … :confused:
------------------
for 2.6.33 need this modify ?? or not ?
arch/mips/include/asm/page.h
---------
#define UNCAC_ADDR(addr) ((addr) - PAGE_OFFSET + UNCAC_BASE +PHYS_OFFSET)
#define CAC_ADDR(addr) ((addr) - UNCAC_BASE + PAGE_OFFSET -PHYS_OFFSET)
---------
----------------
my console not work correctly - baudrate no standart ?! :( i change port type
---- i change port type in ar7platform.c to:
uart_port[0].type = PORT_16550A
to
uart_port[0].type = PORT_AR7
boot process ttyS0 detected as AR7.
Console baudrate not work correct again ....&-(
======= log ================
............
alg: No test for stdrng (krng)
Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
serial8250: ttyS0 at MMIO 0x8610e00 (irq = 15) is a AR7 IdÁIdÁIdÁIdÁIdÁIdÁYdÁYdÁYdÁYdÁYdÁYdÁYdÁYdÁYdÁYdÁYdÁYd
......
==========================
if remart set_termios() in serial_core.c i see all messages ...
Signature · 2 lines
View this message in context: http://old.nabble.com/TI-AR7-7200---no-boot-tp27766331p27772495.html Sent from the linux-mips main mailing list archive at Nabble.com.
Hi,
Quoted 3 lines · Dea_RU
I show this rtunk left 10 day....
and patch src 2.6.33 from dir root/trunk/target/linux/ar7/patches-2.6.32
Ok, then why do not you simply use OpenWrt trunk?
Quoted 9 lines
to day i see :
florian: [ar7] add missing patch to
arch/mips/kernel/traps.cto allow ar7
to setup … :confused:------------------
for 2.6.33 need this modify ?? or not ?
Quoted 7 lines
arch/mips/include/asm/page.h
---------
#defineUNCAC_ADDR(addr)((addr) -PAGE_OFFSET+UNCAC_BASE+PHYS_OFFSET)
#defineCAC_ADDR(addr)((addr) -UNCAC_BASE+PAGE_OFFSET-PHYS_OFFSET)
---------
This is not needed.
Quoted 8 lines
----------------
my console not work correctly - baudrate no standart ?! :( i change port type---- i change port type in
ar7platform.cto:
Quoted 7 lines
uart_port[0].type =
PORT_16550A
to
uart_port[0].type =PORT_AR7boot process ttyS0 detected as AR7.
Console baudrate not work correct again ....&-(
You will also need this patch:
https://dev.openwrt.org/browser/trunk/target/linux/ar7/patches-2.6.32/500-
serial_kludge.patch
Quoted 13 lines
======= log ================
............
alg: No test for stdrng (krng)
Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
serial8250: ttyS0 at MMIO0x8610e00(irq = 15) is a AR7 IdÁIdÁIdÁIdÁIdÁIdÁYdÁYdÁYdÁYdÁYdÁYdÁYd ÁYdÁYdÁYdÁYdÁYd ......==========================
if remart
set_termios()inserial_core.ci see all messages ...
Signature · 5 lines
Best regards, Florian Fainelli Email: [email protected] Web: http://openwrt.org IRC: [florian] on irc.freenode.net -------------------------------
Quoted 6 lines · Florian Fainelli
Quoted 4 lines · On Wednesday 03 March 2010 13:58:48 Dea_RU wrote:
If delete my debug printk-s kernel stop after first console output "Calibrating delay loop... "
Quoted 8 lines
Quoted 2 lines
I do not MIPS arch interput specific ..... Can be MIPS need init internel timer and link overflow flag to interput ??
All handlers are not correctly setup, so you should include this patch in your tree:
http://www.linux-mips.org/archives/linux-mips/2010-01/msg00019.html
If I could slip in with some shameless self advertising:
http://www.digriz.org.uk/wag54g
Same(ish) chipset, the 'Creating Firmwares' section should interest you and get you started on your buildroot journey.
Cheers
Signature · 3 lines
Alexander Clouter
.sigmonster says: guru, n:
A computer owner who can read the manual.