Re: About IRQ enabling
Fabio Giovagnini <[email protected]> Thu, 14 Oct 2004 10:36:48 +0000
| Newsgroups | gmane.linux.ports.sh.devel,gmane.linux.ports.sh.general |
|---|---|
| Organization | Walbro Italy |
| Message-ID | <[email protected]> |
Hi Stuart,
it correct what are you thinking about (Trying to free IRQ72) and
if I read drivers/char/sh-sci.h
I find
#define SH7760_SCIF0_IRQS {52, 53, 55, 54}
#define SH7760_SCIF1_IRQS {72, 73, 75, 74}
#define SH7760_SCIF2_IRQS {76, 77, 79, 78}
so 72, 73 75 are exactly the IRQs of ttySC1 I'm tryng to use as serial
console.
I thougth the problem was an interrupt without an handler, but who is the
responsable of attaching the handler? I think it is sh-sci module during the
init called indirectly by user space when I call open syscall. Is it rigth?
for a bigger availability of information I attach the autoconf.h file
I have to add:
1) I'm using the embedded init ram disk;
2) I'm booting using sh-ilp+g and sh-linux-gdb
Regards
Fabio
This is what I can read:
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
loop: loaded (max 8 devices)
mice: PS/2 mouse device common for all mice
RAMDISK: Compressed image found at block 0
VFS: Mounted root (ext2 filesystem) readonly.
FreåTrying to free free IRQ72
Trying to free free IRQ73
Trying to free f.Trying to free free IRQ72
Trying to free free IRQ73
init started: BusyBox v0.60.5 Trying to free free IRQ72
Trying to free free IRQ73
Bummer, could not run '/etc/iniTrying to free free IRQ72
Trying to free free IRQ73
Trying to free free IRQ75
Tò
Please press Enter to activate t
On Wednesday 13 October 2004 16:49, Stuart MENEFY wrote:
> Fabio
>
> On Wed, 13 Oct 2004 10:34:42 +0000 Fabio Giovagnini <[email protected]> wrote:
> > I try to explain my problem.
>
> [ File system contents deleted]
>
> > My embedded kernel command line is
> > console=ttySC1,115200
> >
> > When I run the kernel I can see some messages from busybox, but at the
> > end I read
> > free IRQ 72, free IRQ 75 and after a bit of time nothing more happen?
>
> I assume what you are seeing is the end of the message:
> Trying to free IRQ 72
> which is printed if something tries to free an irq (by calling free_irq())
> which doesn't have an attached handler.
>
> If so, you need to find out what IRQs 72 and 75 are in your system.
>
> > Do I have to create /dev/ttySCx (x = 0,1,2) and make the symbolic link to
> > ttySC1? if yes, what are the major and minor numbers?
>
> You shouldn't need to as BusyBox will run (reasonably) happily just using
> /dev/console. However if you want to, just look in
> Documentation/devices.txt:
>
> 204 char Low-density serial ports
> 8 = /dev/ttySC0 SCI serial port (SuperH) -
> port 0 9 = /dev/ttySC1 SCI serial port (SuperH) - port 1 10 =
> /dev/ttySC2 SCI serial port (SuperH) - port 2 11 =
> /dev/ttySC3 SCI serial port (SuperH) - port 3
>
> So ttySC0 is major 204, minor 8.
>
> Hope this helps
>
> Stuart
autoconf.h
(text/x-chdr, 8.8 KB)
/* * Automatically generated C config: don't edit */ #define AUTOCONF_INCLUDED #define CONFIG_SUPERH 1 #define CONFIG_UID16 1 #define CONFIG_RWSEM_GENERIC_SPINLOCK 1 /* * Code maturity level options */ #define CONFIG_EXPERIMENTAL 1 #define CONFIG_CLEAN_COMPILE 1 #define CONFIG_BROKEN_ON_SMP 1 /* * General setup */ #define CONFIG_SWAP 1 #define CONFIG_SYSVIPC 1 #define CONFIG_BSD_PROCESS_ACCT 1 #undef CONFIG_BSD_PROCESS_ACCT_V3 #define CONFIG_SYSCTL 1 #undef CONFIG_AUDIT #define CONFIG_LOG_BUF_SHIFT 14 #undef CONFIG_HOTPLUG #undef CONFIG_IKCONFIG #undef CONFIG_EMBEDDED #define CONFIG_KALLSYMS 1 #undef CONFIG_KALLSYMS_EXTRA_PASS #define CONFIG_FUTEX 1 #define CONFIG_EPOLL 1 #define CONFIG_IOSCHED_NOOP 1 #define CONFIG_IOSCHED_AS 1 #define CONFIG_IOSCHED_DEADLINE 1 #define CONFIG_IOSCHED_CFQ 1 #undef CONFIG_CC_OPTIMIZE_FOR_SIZE /* * Loadable module support */ #undef CONFIG_MODULES /* * System type */ #undef CONFIG_SH_SOLUTION_ENGINE #undef CONFIG_SH_7751_SOLUTION_ENGINE #undef CONFIG_SH_7300_SOLUTION_ENGINE #undef CONFIG_SH_73180_SOLUTION_ENGINE #undef CONFIG_SH_7751_SYSTEMH #undef CONFIG_SH_STB1_HARP #undef CONFIG_SH_STB1_OVERDRIVE #undef CONFIG_SH_HP620 #undef CONFIG_SH_HP680 #undef CONFIG_SH_HP690 #undef CONFIG_SH_CQREEK #undef CONFIG_SH_DMIDA #undef CONFIG_SH_EC3104 #undef CONFIG_SH_SATURN #undef CONFIG_SH_DREAMCAST #undef CONFIG_SH_CAT68701 #undef CONFIG_SH_BIGSUR #undef CONFIG_SH_SH2000 #undef CONFIG_SH_ADX #undef CONFIG_SH_MPC1211 #undef CONFIG_SH_SECUREEDGE5410 #undef CONFIG_SH_HS7751RVOIP #undef CONFIG_SH_RTS7751R2D #undef CONFIG_SH_EDOSK7705 #undef CONFIG_SH_SH4202_MICRODEV #define CONFIG_SH_LSH7760_10 1 #undef CONFIG_SH_UNKNOWN #undef CONFIG_CPU_SH2 #undef CONFIG_CPU_SH3 #define CONFIG_CPU_SH4 1 #undef CONFIG_CPU_SUBTYPE_SH7604 #undef CONFIG_CPU_SUBTYPE_SH7300 #undef CONFIG_CPU_SUBTYPE_SH7705 #undef CONFIG_CPU_SUBTYPE_SH7707 #undef CONFIG_CPU_SUBTYPE_SH7708 #undef CONFIG_CPU_SUBTYPE_SH7709 #undef CONFIG_CPU_SUBTYPE_SH7750 #undef CONFIG_CPU_SUBTYPE_SH7751 #define CONFIG_CPU_SUBTYPE_SH7760 1 #undef CONFIG_CPU_SUBTYPE_SH73180 #undef CONFIG_CPU_SUBTYPE_ST40STB1 #undef CONFIG_CPU_SUBTYPE_ST40GX1 #undef CONFIG_CPU_SUBTYPE_SH4_202 #define CONFIG_MMU 1 #define CONFIG_CMDLINE_BOOL 1 #define CONFIG_CMDLINE "console=ttySC1,115200" #define CONFIG_MEMORY_START 0x0D000000 #define CONFIG_MEMORY_SIZE 0x03000000 #undef CONFIG_MEMORY_OVERRIDE #define CONFIG_SH_FPU 1 #define CONFIG_ZERO_PAGE_OFFSET 0x00001000 #define CONFIG_BOOT_LINK_OFFSET 0x00800000 #define CONFIG_CPU_LITTLE_ENDIAN 1 #undef CONFIG_PREEMPT #undef CONFIG_UBC_WAKEUP #undef CONFIG_SH_WRITETHROUGH #undef CONFIG_SH_OCRAM #undef CONFIG_SH_STORE_QUEUES #undef CONFIG_SMP #undef CONFIG_SH_PCLK_CALC #define CONFIG_SH_PCLK_FREQ 33333333 /* * CPU Frequency scaling */ #undef CONFIG_CPU_FREQ /* * DMA support */ #undef CONFIG_SH_DMA /* * Companion Chips */ #undef CONFIG_HD6446X_SERIES /* * Bus options (PCI, PCMCIA, EISA, MCA, ISA) */ #undef CONFIG_PCI /* * Executable file formats */ #define CONFIG_BINFMT_ELF 1 #undef CONFIG_BINFMT_FLAT #define CONFIG_BINFMT_MISC 1 /* * SH initrd options */ #define CONFIG_EMBEDDED_RAMDISK 1 #define CONFIG_EMBEDDED_RAMDISK_IMAGE "ramdisk.gz" /* * Device Drivers */ /* * Generic Driver Options */ #define CONFIG_STANDALONE 1 #define CONFIG_PREVENT_FIRMWARE_BUILD 1 /* * Memory Technology Devices (MTD) */ #undef CONFIG_MTD /* * Parallel port support */ #undef CONFIG_PARPORT /* * Plug and Play support */ /* * Block devices */ #undef CONFIG_BLK_DEV_FD #define CONFIG_BLK_DEV_LOOP 1 #undef CONFIG_BLK_DEV_CRYPTOLOOP #define CONFIG_BLK_DEV_RAM 1 #define CONFIG_BLK_DEV_RAM_SIZE 4096 #define CONFIG_BLK_DEV_INITRD 1 #undef CONFIG_LBD /* * ATA/ATAPI/MFM/RLL support */ #undef CONFIG_IDE /* * SCSI device support */ #undef CONFIG_SCSI /* * Multi-device support (RAID and LVM) */ #undef CONFIG_MD /* * Fusion MPT device support */ /* * IEEE 1394 (FireWire) support */ /* * I2O device support */ /* * Networking support */ #undef CONFIG_NET #undef CONFIG_NETPOLL #undef CONFIG_NET_POLL_CONTROLLER /* * ISDN subsystem */ /* * Telephony Support */ #undef CONFIG_PHONE /* * Input device support */ #define CONFIG_INPUT 1 /* * Userland interfaces */ #define CONFIG_INPUT_MOUSEDEV 1 #undef CONFIG_INPUT_MOUSEDEV_PSAUX #define CONFIG_INPUT_MOUSEDEV_SCREEN_X 1024 #define CONFIG_INPUT_MOUSEDEV_SCREEN_Y 768 #undef CONFIG_INPUT_JOYDEV #undef CONFIG_INPUT_TSDEV #undef CONFIG_INPUT_EVDEV #undef CONFIG_INPUT_EVBUG /* * Input I/O drivers */ #undef CONFIG_GAMEPORT #define CONFIG_SOUND_GAMEPORT 1 #undef CONFIG_SERIO #undef CONFIG_SERIO_I8042 /* * Input Device Drivers */ #undef CONFIG_INPUT_KEYBOARD #undef CONFIG_INPUT_MOUSE #undef CONFIG_INPUT_JOYSTICK #undef CONFIG_INPUT_TOUCHSCREEN #undef CONFIG_INPUT_MISC /* * Character devices */ #define CONFIG_VT 1 #define CONFIG_VT_CONSOLE 1 #define CONFIG_HW_CONSOLE 1 #undef CONFIG_SERIAL_NONSTANDARD /* * Serial drivers */ #undef CONFIG_SERIAL_8250 /* * Non-8250 serial port support */ #define CONFIG_SERIAL_SH_SCI 1 #define CONFIG_SERIAL_SH_SCI_CONSOLE 1 #define CONFIG_SERIAL_CORE 1 #define CONFIG_SERIAL_CORE_CONSOLE 1 #define CONFIG_UNIX98_PTYS 1 #undef CONFIG_LEGACY_PTYS #undef CONFIG_QIC02_TAPE /* * IPMI */ #undef CONFIG_IPMI_HANDLER /* * Watchdog Cards */ #undef CONFIG_WATCHDOG #undef CONFIG_RTC #undef CONFIG_GEN_RTC #undef CONFIG_DTLK #undef CONFIG_R3964 /* * Ftape, the floppy tape device driver */ #undef CONFIG_AGP #undef CONFIG_DRM #undef CONFIG_RAW_DRIVER /* * I2C support */ #undef CONFIG_I2C /* * Dallas's 1-wire bus */ #undef CONFIG_W1 /* * Misc devices */ /* * Multimedia devices */ #undef CONFIG_VIDEO_DEV /* * Digital Video Broadcasting Devices */ /* * Graphics support */ #undef CONFIG_FB /* * Console display driver support */ #undef CONFIG_VGA_CONSOLE #undef CONFIG_MDA_CONSOLE #define CONFIG_DUMMY_CONSOLE 1 /* * Sound */ #undef CONFIG_SOUND /* * USB support */ /* * USB Gadget Support */ #undef CONFIG_USB_GADGET /* * File systems */ #define CONFIG_EXT2_FS 1 #undef CONFIG_EXT2_FS_XATTR #undef CONFIG_EXT3_FS #undef CONFIG_JBD #undef CONFIG_REISERFS_FS #undef CONFIG_JFS_FS #undef CONFIG_XFS_FS #undef CONFIG_MINIX_FS #undef CONFIG_ROMFS_FS #undef CONFIG_QUOTA #undef CONFIG_AUTOFS_FS #undef CONFIG_AUTOFS4_FS /* * CD-ROM/DVD Filesystems */ #undef CONFIG_ISO9660_FS #undef CONFIG_UDF_FS /* * DOS/FAT/NT Filesystems */ #undef CONFIG_MSDOS_FS #undef CONFIG_VFAT_FS #undef CONFIG_NTFS_FS /* * Pseudo filesystems */ #define CONFIG_PROC_FS 1 #define CONFIG_PROC_KCORE 1 #define CONFIG_SYSFS 1 #define CONFIG_DEVFS_FS 1 #undef CONFIG_DEVFS_MOUNT #undef CONFIG_DEVFS_DEBUG #undef CONFIG_DEVPTS_FS_XATTR #define CONFIG_TMPFS 1 #undef CONFIG_HUGETLBFS #undef CONFIG_HUGETLB_PAGE #define CONFIG_RAMFS 1 /* * Miscellaneous filesystems */ #undef CONFIG_ADFS_FS #undef CONFIG_AFFS_FS #undef CONFIG_HFS_FS #undef CONFIG_HFSPLUS_FS #undef CONFIG_BEFS_FS #undef CONFIG_BFS_FS #undef CONFIG_EFS_FS #undef CONFIG_CRAMFS #undef CONFIG_VXFS_FS #undef CONFIG_HPFS_FS #undef CONFIG_QNX4FS_FS #undef CONFIG_SYSV_FS #undef CONFIG_UFS_FS /* * Partition Types */ #undef CONFIG_PARTITION_ADVANCED #define CONFIG_MSDOS_PARTITION 1 /* * Native Language Support */ #define CONFIG_NLS 1 #define CONFIG_NLS_DEFAULT "iso8859-1" #undef CONFIG_NLS_CODEPAGE_437 #undef CONFIG_NLS_CODEPAGE_737 #undef CONFIG_NLS_CODEPAGE_775 #undef CONFIG_NLS_CODEPAGE_850 #undef CONFIG_NLS_CODEPAGE_852 #undef CONFIG_NLS_CODEPAGE_855 #undef CONFIG_NLS_CODEPAGE_857 #undef CONFIG_NLS_CODEPAGE_860 #undef CONFIG_NLS_CODEPAGE_861 #undef CONFIG_NLS_CODEPAGE_862 #undef CONFIG_NLS_CODEPAGE_863 #undef CONFIG_NLS_CODEPAGE_864 #undef CONFIG_NLS_CODEPAGE_865 #undef CONFIG_NLS_CODEPAGE_866 #undef CONFIG_NLS_CODEPAGE_869 #undef CONFIG_NLS_CODEPAGE_936 #undef CONFIG_NLS_CODEPAGE_950 #undef CONFIG_NLS_CODEPAGE_932 #undef CONFIG_NLS_CODEPAGE_949 #undef CONFIG_NLS_CODEPAGE_874 #undef CONFIG_NLS_ISO8859_8 #undef CONFIG_NLS_CODEPAGE_1250 #undef CONFIG_NLS_CODEPAGE_1251 #undef CONFIG_NLS_ASCII #undef CONFIG_NLS_ISO8859_1 #undef CONFIG_NLS_ISO8859_2 #undef CONFIG_NLS_ISO8859_3 #undef CONFIG_NLS_ISO8859_4 #undef CONFIG_NLS_ISO8859_5 #undef CONFIG_NLS_ISO8859_6 #undef CONFIG_NLS_ISO8859_7 #undef CONFIG_NLS_ISO8859_9 #undef CONFIG_NLS_ISO8859_13 #undef CONFIG_NLS_ISO8859_14 #undef CONFIG_NLS_ISO8859_15 #undef CONFIG_NLS_KOI8_R #undef CONFIG_NLS_KOI8_U #undef CONFIG_NLS_UTF8 /* * Profiling support */ #undef CONFIG_PROFILING /* * Kernel hacking */ #undef CONFIG_MAGIC_SYSRQ #undef CONFIG_DEBUG_SPINLOCK #undef CONFIG_DEBUG_INFO #define CONFIG_SH_STANDARD_BIOS 1 #undef CONFIG_EARLY_SCIF_CONSOLE #define CONFIG_EARLY_PRINTK 1 #undef CONFIG_KGDB #undef CONFIG_FRAME_POINTER /* * Security options */ #undef CONFIG_SECURITY /* * Cryptographic options */ #undef CONFIG_CRYPTO /* * Library routines */ #undef CONFIG_CRC_CCITT #undef CONFIG_CRC32 #undef CONFIG_LIBCRC32C