From: Jaswinder S. <jas...@ya...> - 2001-02-11 07:17:50
|
Dear Niibe-san, linux-sh and linuxsh-dev mailing list, I build srec file from vmlinux by :- sh-linux-gnu-objcopy vmlinux vmlinux.srec -O srec then i tranfer this srec file to my 7750 board by hyperterminal . then i gave the command :- Ready >g 8c002000 and i got :- ---General Registers------------------------------------------------ R0 =400000F0 R1 =00000000 R2 =00000000 R3 =00000000 R4 =00000000 R5 =00000000 R6 =00000000 R7 =8C0C6000 R8 =8C0C7F56 R9 =0000000F R10=000000F0 R11=0000000E R12=8C0BD0CC R13=8C0E2A6C R14=00000000 R15=8C0C7F44 R0_BANK=00000000 R1_BANK=8C00AAE0 R2_BANK=00000004 R3_BANK=00000034 R4_BANK=8C0C7F4B R5_BANK=0000000C R6_BANK=00000000 R7_BANK=00000000 ---Control Registers------------------------------------------------ SSR=400000F0 SPC=8C00AAE8 GBR=00000000 VBR=A0000000 SR =700000F0 MD RB BL M Q I S T =1 1 1 0 0 F 0 0 ---System Registers------------------------------------------------ MACH=00000000 MACL=00000000 PR =8C0086EA PC =8C00AAE8 this is pointing to sh-console-write . Dear Niibe-san your kernel depends on gdb-stub , is this right , kernel depends on stub :( I think kernel should be independent . How can i run your kernel by hyperterminal ? Thanks , Happy Hacking , Jaswinder. --- Jaswinder Singh <jas...@ya...> wrote: > Dear niibe-san , linux-sh and linuxsh-dev mailing > list, > > I say no for "CONFIG_VT" in config > > and i replace (in arch/sh/vmlinux.lds.S) :- > > OUTPUT_FORMAT("elf32-sh-linux", "elf32-sh-linux", > "elf32-sh-linux") > > with > OUTPUT_FORMAT("elf32-sh", "elf32-sh", "elf32-sh") > > in arch/sh/vmlinux.lds.S > > i got vmlinux. > > and one more thing i also replaced (in > arch/sh/Makefile):- > > ifdef CONFIG_CPU_SH4 > CFLAGS += -m4-nofpu > AFLAGS += -m4-nofpu > endif > > with > > ifdef CONFIG_CPU_SH4 > CFLAGS += -m4 > AFLAGS += -m4 > endif > > Thanks, > > Jaswinder. > > --- Jaswinder Singh <jas...@ya...> > wrote: > > Dear niibe-san , linux-sh and linuxsh-dev mailing > > list, > > > > I made some changes in arch/sh/lib/checksum.S > > > > old errors get resolved but now i am getting new > > errors :- > > > > sh-linux-gnu-ld -EL -T arch/sh/vmlinux.lds -e > _stext > > arch/sh/kernel/head.o arch/sh/kernel/init_task.o > > init/main.o init/version.o \ > > --start-group \ > > arch/sh/kernel/kernel.o arch/sh/mm/mm.o > > kernel/kernel.o mm/mm.o fs/fs.o ipc/ipc.o \ > > drivers/block/block.o drivers/char/char.o > > drivers/misc/misc.o drivers/net/net.o > > drivers/media/media.o drivers/video/video.o \ > > net/network.o \ > > /home/jsrsh/linux/arch/sh/lib/lib.a > > /home/jsrsh/linux/lib/lib.a > > /home/jsrsh/linux/arch/sh/lib/lib.a > > > /opt/hardhat/devkit/sh/sh4/lib/gcc-lib/sh-linux-gnu/2.95.2/libgcc.a > > \ > > --end-group \ > > -o vmlinux > > drivers/char/char.o: In function `tty_open': > > drivers/char/char.o(.text+0x19ac): undefined > > reference > > to `fg_console' > > drivers/char/char.o: In function `tty_ioctl': > > drivers/char/char.o(.text+0x27a4): undefined > > reference > > to `tioclinux' > > drivers/char/char.o: In function `vt_ioctl': > > drivers/char/char.o(.text+0xa360): undefined > > reference > > to `vc_cons_allocated' > > drivers/char/char.o(.text+0xa924): undefined > > reference > > to `fg_console' > > drivers/char/char.o(.text+0xa928): undefined > > reference > > to `unblank_screen' > > drivers/char/char.o(.text+0xa92c): undefined > > reference > > to `do_blank_screen' > > drivers/char/char.o(.text+0xabf0): undefined > > reference > > to `key_maps' > > drivers/char/char.o(.text+0xac00): undefined > > reference > > to `keymap_count' > > drivers/char/char.o(.text+0xae84): undefined > > reference > > to `func_table' > > drivers/char/char.o(.text+0xae88): undefined > > reference > > to `funcbufsize' > > drivers/char/char.o(.text+0xae8c): undefined > > reference > > to `funcbufleft' > > drivers/char/char.o(.text+0xae90): undefined > > reference > > to `funcbufptr' > > drivers/char/char.o(.text+0xb00c): undefined > > reference > > to `funcbufleft' > > drivers/char/char.o(.text+0xb014): undefined > > reference > > to `func_table' > > drivers/char/char.o(.text+0xb018): undefined > > reference > > to `funcbufsize' > > drivers/char/char.o(.text+0xb020): undefined > > reference > > to `funcbufptr' > > drivers/char/char.o(.text+0xb024): undefined > > reference > > to `func_buf' > > drivers/char/char.o(.text+0xb238): undefined > > reference > > to `accent_table_size' > > drivers/char/char.o(.text+0xb23c): undefined > > reference > > to `accent_table' > > drivers/char/char.o(.text+0xb478): undefined > > reference > > to `fg_console' > > drivers/char/char.o(.text+0xb47c): undefined > > reference > > to `console_driver' > > drivers/char/char.o(.text+0xb5d0): undefined > > reference > > to `vc_allocate' > > drivers/char/char.o(.text+0xb5d4): undefined > > reference > > to `want_console' > > drivers/char/char.o(.text+0xb5d8): undefined > > reference > > to `console_tasklet' > > drivers/char/char.o(.text+0xb6e4): undefined > > reference > > to `console_driver' > > drivers/char/char.o(.text+0xb6e8): undefined > > reference > > to `fg_console' > > drivers/char/char.o(.text+0xb6f0): undefined > > reference > > to `vc_disallocate' > > drivers/char/char.o(.text+0xb6f4): undefined > > reference > > to `vc_resize' > > drivers/char/char.o(.text+0xb9b4): undefined > > reference > > to `vc_resize' > > drivers/char/char.o(.text+0xb9c0): undefined > > reference > > to `fg_console' > > drivers/char/char.o(.text+0xb9c4): undefined > > reference > > to `con_font_op' > > drivers/char/char.o(.text+0xb9c8): undefined > > reference > > to `con_set_cmap' > > drivers/char/char.o(.text+0xb9cc): undefined > > reference > > to `con_get_cmap' > > drivers/char/char.o(.text+0xbacc): undefined > > reference > > to `fg_console' > > drivers/char/char.o(.text+0xbad0): undefined > > reference > > to `con_font_op' > > drivers/char/char.o(.text+0xbda0): undefined > > reference > > to `con_font_op' > > drivers/char/char.o(.text+0xbdb4): undefined > > reference > > to `fg_console' > > drivers/char/char.o: In function `vt_waitactive': > > drivers/char/char.o(.text+0xbeb0): undefined > > reference > > to `fg_console' > > drivers/char/char.o: In function `reset_vc': > > drivers/char/char.o(.text+0xbf20): undefined > > reference > > to `reset_palette' > > drivers/char/char.o: In function > > `complete_change_console': > > drivers/char/char.o(.text+0xbfdc): undefined > > reference > > to `last_console' > > drivers/char/char.o(.text+0xbfe0): undefined > > reference > > to `fg_console' > > drivers/char/char.o(.text+0xbfe8): undefined > > reference > > to `redraw_screen' > > drivers/char/char.o(.text+0xbff4): undefined > > reference > > to `unblank_screen' > === message truncated ===> /* > * Automatically generated C config: don't edit > */ > #define AUTOCONF_INCLUDED > #define CONFIG_SUPERH 1 > #define CONFIG_UID16 1 > > /* > * Code maturity level options > */ > #define CONFIG_EXPERIMENTAL 1 > > /* > * Loadable module support > */ > #undef CONFIG_MODULES > > /* > * Processor type and features > */ > #undef CONFIG_SH_GENERIC > #define CONFIG_SH_SOLUTION_ENGINE 1 > #undef CONFIG_SH_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_DREAMCAST > #undef CONFIG_SH_UNKNOWN > #define CONFIG_SH_RTC 1 > #undef CONFIG_CPU_SUBTYPE_SH7707 > #undef CONFIG_CPU_SUBTYPE_SH7708 > #undef CONFIG_CPU_SUBTYPE_SH7709 > #define CONFIG_CPU_SUBTYPE_SH7750 1 > #undef CONFIG_CPU_SH3 > #define CONFIG_CPU_SH4 1 > #define CONFIG_CPU_LITTLE_ENDIAN 1 > #define CONFIG_MEMORY_START 0x0c000000 > > /* > * General setup > */ > #define CONFIG_ISA 1 > #undef CONFIG_EISA > #undef CONFIG_MCA > #undef CONFIG_SBUS > #define CONFIG_NET 1 > #undef CONFIG_CF_ENABLER > #undef CONFIG_HD64461 > #undef CONFIG_HD64465 > #undef CONFIG_PCI > #undef CONFIG_HOTPLUG > #undef CONFIG_PCMCIA > #define CONFIG_SYSVIPC 1 > #undef CONFIG_BSD_PROCESS_ACCT > #define CONFIG_SYSCTL 1 > #define CONFIG_KCORE_ELF 1 > #undef CONFIG_KCORE_AOUT > #define CONFIG_BINFMT_ELF 1 > #undef CONFIG_BINFMT_MISC > > /* > * Parallel port support > */ > #undef CONFIG_PARPORT > > /* > * Memory Technology Devices (MTD) > */ > #undef CONFIG_MTD > > /* > * Block devices > */ > #undef CONFIG_BLK_DEV_FD > #undef CONFIG_BLK_DEV_XD > #undef CONFIG_PARIDE > #undef CONFIG_BLK_CPQ_DA > #undef CONFIG_BLK_CPQ_CISS_DA > #undef CONFIG_BLK_DEV_DAC960 > #undef CONFIG_BLK_DEV_LOOP > #undef CONFIG_BLK_DEV_NBD > #define CONFIG_BLK_DEV_RAM 1 > #define CONFIG_BLK_DEV_RAM_SIZE (4096) > #define CONFIG_BLK_DEV_INITRD 1 > > /* > * Multi-device support (RAID and LVM) > */ > #undef CONFIG_MD > #undef CONFIG_BLK_DEV_MD > #undef CONFIG_MD_LINEAR > #undef CONFIG_MD_RAID0 > #undef CONFIG_MD_RAID1 > #undef CONFIG_MD_RAID5 > #undef CONFIG_BLK_DEV_LVM > > /* > * Networking options > */ > #undef CONFIG_PACKET > #undef CONFIG_NETLINK > #undef CONFIG_NETFILTER > #undef CONFIG_FILTER > #define CONFIG_UNIX 1 > #define CONFIG_INET 1 > #undef CONFIG_IP_MULTICAST > #undef CONFIG_IP_ADVANCED_ROUTER > #undef CONFIG_IP_PNP > #undef CONFIG_NET_IPIP > #undef CONFIG_NET_IPGRE > #undef CONFIG_INET_ECN > #undef CONFIG_SYN_COOKIES > #undef CONFIG_IPV6 > #undef CONFIG_KHTTPD > #undef CONFIG_ATM > > /* > * > */ > #undef CONFIG_IPX > #undef CONFIG_ATALK > #undef CONFIG_DECNET > #undef CONFIG_BRIDGE > #undef CONFIG_X25 > #undef CONFIG_LAPB > #undef CONFIG_LLC > #undef CONFIG_NET_DIVERT > #undef CONFIG_ECONET > #undef CONFIG_WAN_ROUTER > #undef CONFIG_NET_FASTROUTE > #undef CONFIG_NET_HW_FLOWCONTROL > > /* > * QoS and/or fair queueing > */ > #undef CONFIG_NET_SCHED > > /* > * ATA/IDE/MFM/RLL support > */ > #undef CONFIG_IDE > #undef CONFIG_BLK_DEV_IDE_MODES > #undef CONFIG_BLK_DEV_HD > > /* > * SCSI support > */ > #undef CONFIG_SCSI > > /* > * Network device support > */ > #define CONFIG_NETDEVICES 1 > > /* > * ARCnet devices > */ > #undef CONFIG_ARCNET > #undef CONFIG_DUMMY > #undef CONFIG_BONDING > #undef CONFIG_EQUALIZER > #undef CONFIG_TUN > #undef CONFIG_NET_SB1000 > > /* > * Ethernet (10 or 100Mbit) > */ > #define CONFIG_NET_ETHERNET 1 > #define CONFIG_STNIC 1 > #undef CONFIG_NET_VENDOR_3COM > #undef CONFIG_LANCE > #undef CONFIG_NET_VENDOR_SMC > #undef CONFIG_NET_VENDOR_RACAL > #undef CONFIG_AT1700 > #undef CONFIG_DEPCA > #undef CONFIG_HP100 > #undef CONFIG_NET_ISA > #undef CONFIG_NET_PCI > #undef CONFIG_NET_POCKET > > /* > * Ethernet (1000 Mbit) > */ > #undef CONFIG_ACENIC > #undef CONFIG_HAMACHI > #undef CONFIG_YELLOWFIN > #undef CONFIG_SK98LIN > #undef CONFIG_FDDI > #undef CONFIG_HIPPI > #undef CONFIG_PPP > #undef CONFIG_SLIP > > /* > * Wireless LAN (non-hamradio) > */ > #undef CONFIG_NET_RADIO > > /* > === message truncated ===> # $Id: Makefile,v 1.6 2000/06/10 03:03:52 gniibe Exp > $ > # > # This file is subject to the terms and conditions > of the GNU General Public > # License. See the file "COPYING" in the main > directory of this archive > # for more details. > # > # Copyright (C) 1999 Kaz Kojima > # > # This file is included by the global makefile so > that you can add your own > # architecture-specific flags and dependencies. > Remember to do have actions > # for "archclean" and "archdep" for cleaning up and > making dependencies for > # this architecture > # > > # > # Select the object file format to substitute into > the linker script. > # > tool_prefix = sh-linux-gnu- > > ifdef CONFIG_CPU_LITTLE_ENDIAN > CFLAGS += -ml > AFLAGS += -ml > # LINKFLAGS += -EL > LDFLAGS := -EL > else > CFLAGS += -mb > AFLAGS += -mb > # LINKFLAGS += -EB > LDFLAGS := -EB > endif > > # ifdef CONFIG_CROSSCOMPILE > CROSS_COMPILE = $(tool_prefix) > # endif > > LD =$(CROSS_COMPILE)ld $(LDFLAGS) > OBJCOPY=$(CROSS_COMPILE)objcopy -O binary -R .note > -R .comment -R .stab -R .stabstr -S > > MODFLAGS += > > # > # > > ifdef CONFIG_CPU_SH3 > CFLAGS += -m3 > AFLAGS += -m3 > endif > ifdef CONFIG_CPU_SH4 > CFLAGS += -m4 > AFLAGS += -m4 > endif > > # > # Choosing incompatible machines durings > configuration will result in > # error messages during linking. Select a default > linkscript if > # none has been choosen above. > # > LINKSCRIPT = arch/sh/vmlinux.lds > LINKFLAGS += -T $(word 1,$(LINKSCRIPT)) -e > _stext > > ifdef LOADADDR > LINKFLAGS += -Ttext $(word 1,$(LOADADDR)) > endif > > # > CFLAGS += -pipe > > HEAD := arch/sh/kernel/head.o > arch/sh/kernel/init_task.o > > SUBDIRS := $(SUBDIRS) $(addprefix arch/sh/, kernel > mm lib) > CORE_FILES := arch/sh/kernel/kernel.o > arch/sh/mm/mm.o $(CORE_FILES) > LIBGCC := $(shell $(CC) $(CFLAGS) > -print-libgcc-file-name) > LIBS := $(TOPDIR)/arch/sh/lib/lib.a $(LIBS) > $(TOPDIR)/arch/sh/lib/lib.a \ > $(LIBGCC) > > MAKEBOOT = $(MAKE) -C arch/$(ARCH)/boot > > vmlinux: arch/sh/vmlinux.lds > > arch/sh/vmlinux.lds: arch/sh/vmlinux.lds.S FORCE > $(CPP) -traditional -C -P -I$(HPATH) -Ush > arch/sh/vmlinux.lds.S >arch/sh/vmlinux.lds > > FORCE: ; > > zImage: vmlinux > @$(MAKEBOOT) zImage > > compressed: zImage > > zdisk: vmlinux > @$(MAKEBOOT) zdisk > > archclean: > @$(MAKEBOOT) clean > $(MAKE) -C arch/$(ARCH)/kernel clean > # $(MAKE) -C arch/$(ARCH)/tools clean > > archmrproper: > rm -f arch/sh/vmlinux.lds > > archdep: > @$(MAKEBOOT) dep > > ATTACHMENT part 4 application/octet-stream name=vmlinux.lds.S __________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/ |