aboutsummaryrefslogtreecommitdiffstats
path: root/arch/m32r/oaks32r
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-16 18:20:36 -0400
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-16 18:20:36 -0400
commit1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (patch)
tree0bba044c4ce775e45a88a51686b5d9f90697ea9d /arch/m32r/oaks32r
Linux-2.6.12-rc2v2.6.12-rc2
Initial git repository build. I'm not bothering with the full history, even though we have it. We can create a separate "historical" git archive of that later if we want to, and in the meantime it's about 3.2GB when imported into git - space that would just make the early git days unnecessarily complicated, when we don't have a lot of good infrastructure for it. Let it rip!
Diffstat (limited to 'arch/m32r/oaks32r')
-rw-r--r--arch/m32r/oaks32r/defconfig.nommu602
-rw-r--r--arch/m32r/oaks32r/dot.gdbinit.nommu154
2 files changed, 756 insertions, 0 deletions
diff --git a/arch/m32r/oaks32r/defconfig.nommu b/arch/m32r/oaks32r/defconfig.nommu
new file mode 100644
index 000000000000..f2da9be726e5
--- /dev/null
+++ b/arch/m32r/oaks32r/defconfig.nommu
@@ -0,0 +1,602 @@
1#
2# Automatically generated make config: don't edit
3# Linux kernel version: 2.6.11-rc4
4# Wed Feb 16 21:11:13 2005
5#
6CONFIG_M32R=y
7# CONFIG_UID16 is not set
8CONFIG_GENERIC_ISA_DMA=y
9CONFIG_GENERIC_HARDIRQS=y
10CONFIG_GENERIC_IRQ_PROBE=y
11
12#
13# Code maturity level options
14#
15CONFIG_EXPERIMENTAL=y
16CONFIG_CLEAN_COMPILE=y
17CONFIG_BROKEN_ON_SMP=y
18CONFIG_LOCK_KERNEL=y
19
20#
21# General setup
22#
23CONFIG_LOCALVERSION=""
24# CONFIG_POSIX_MQUEUE is not set
25CONFIG_BSD_PROCESS_ACCT=y
26# CONFIG_BSD_PROCESS_ACCT_V3 is not set
27CONFIG_SYSCTL=y
28# CONFIG_AUDIT is not set
29CONFIG_LOG_BUF_SHIFT=14
30CONFIG_HOTPLUG=y
31CONFIG_KOBJECT_UEVENT=y
32# CONFIG_IKCONFIG is not set
33CONFIG_EMBEDDED=y
34# CONFIG_KALLSYMS is not set
35# CONFIG_FUTEX is not set
36# CONFIG_EPOLL is not set
37# CONFIG_CC_OPTIMIZE_FOR_SIZE is not set
38CONFIG_CC_ALIGN_FUNCTIONS=0
39CONFIG_CC_ALIGN_LABELS=0
40CONFIG_CC_ALIGN_LOOPS=0
41CONFIG_CC_ALIGN_JUMPS=0
42CONFIG_TINY_SHMEM=y
43
44#
45# Loadable module support
46#
47CONFIG_MODULES=y
48CONFIG_MODULE_UNLOAD=y
49# CONFIG_MODULE_FORCE_UNLOAD is not set
50CONFIG_OBSOLETE_MODPARM=y
51# CONFIG_MODVERSIONS is not set
52# CONFIG_MODULE_SRCVERSION_ALL is not set
53CONFIG_KMOD=y
54
55#
56# Processor type and features
57#
58# CONFIG_PLAT_MAPPI is not set
59# CONFIG_PLAT_USRV is not set
60# CONFIG_PLAT_M32700UT is not set
61# CONFIG_PLAT_OPSPUT is not set
62CONFIG_PLAT_OAKS32R=y
63# CONFIG_PLAT_MAPPI2 is not set
64# CONFIG_CHIP_M32700 is not set
65CONFIG_CHIP_M32102=y
66# CONFIG_CHIP_VDEC2 is not set
67# CONFIG_CHIP_OPSP is not set
68CONFIG_ISA_M32R=y
69CONFIG_BUS_CLOCK=33333333
70CONFIG_TIMER_DIVIDE=128
71# CONFIG_CPU_LITTLE_ENDIAN is not set
72CONFIG_MEMORY_START=0x01000000
73CONFIG_MEMORY_SIZE=0x00800000
74CONFIG_NOHIGHMEM=y
75# CONFIG_DISCONTIGMEM is not set
76CONFIG_RWSEM_GENERIC_SPINLOCK=y
77# CONFIG_RWSEM_XCHGADD_ALGORITHM is not set
78CONFIG_GENERIC_CALIBRATE_DELAY=y
79CONFIG_PREEMPT=y
80# CONFIG_HAVE_DEC_LOCK is not set
81# CONFIG_SMP is not set
82
83#
84# Bus options (PCI, PCMCIA, EISA, MCA, ISA)
85#
86# CONFIG_PCI is not set
87# CONFIG_ISA is not set
88
89#
90# PCCARD (PCMCIA/CardBus) support
91#
92# CONFIG_PCCARD is not set
93
94#
95# PC-card bridges
96#
97
98#
99# PCI Hotplug Support
100#
101
102#
103# Executable file formats
104#
105CONFIG_BINFMT_FLAT=y
106# CONFIG_BINFMT_ZFLAT is not set
107# CONFIG_BINFMT_SHARED_FLAT is not set
108# CONFIG_BINFMT_MISC is not set
109
110#
111# Device Drivers
112#
113
114#
115# Generic Driver Options
116#
117CONFIG_STANDALONE=y
118CONFIG_PREVENT_FIRMWARE_BUILD=y
119# CONFIG_FW_LOADER is not set
120
121#
122# Memory Technology Devices (MTD)
123#
124# CONFIG_MTD is not set
125
126#
127# Parallel port support
128#
129# CONFIG_PARPORT is not set
130
131#
132# Plug and Play support
133#
134
135#
136# Block devices
137#
138# CONFIG_BLK_DEV_FD is not set
139# CONFIG_BLK_DEV_COW_COMMON is not set
140CONFIG_BLK_DEV_LOOP=y
141# CONFIG_BLK_DEV_CRYPTOLOOP is not set
142CONFIG_BLK_DEV_NBD=y
143CONFIG_BLK_DEV_RAM=y
144CONFIG_BLK_DEV_RAM_COUNT=16
145CONFIG_BLK_DEV_RAM_SIZE=4096
146# CONFIG_BLK_DEV_INITRD is not set
147CONFIG_INITRAMFS_SOURCE=""
148# CONFIG_CDROM_PKTCDVD is not set
149
150#
151# IO Schedulers
152#
153CONFIG_IOSCHED_NOOP=y
154# CONFIG_IOSCHED_AS is not set
155CONFIG_IOSCHED_DEADLINE=y
156CONFIG_IOSCHED_CFQ=y
157# CONFIG_ATA_OVER_ETH is not set
158
159#
160# ATA/ATAPI/MFM/RLL support
161#
162# CONFIG_IDE is not set
163
164#
165# SCSI device support
166#
167# CONFIG_SCSI is not set
168
169#
170# Multi-device support (RAID and LVM)
171#
172# CONFIG_MD is not set
173
174#
175# Fusion MPT device support
176#
177
178#
179# IEEE 1394 (FireWire) support
180#
181
182#
183# I2O device support
184#
185
186#
187# Networking support
188#
189CONFIG_NET=y
190
191#
192# Networking options
193#
194CONFIG_PACKET=y
195# CONFIG_PACKET_MMAP is not set
196# CONFIG_NETLINK_DEV is not set
197CONFIG_UNIX=y
198# CONFIG_NET_KEY is not set
199CONFIG_INET=y
200# CONFIG_IP_MULTICAST is not set
201# CONFIG_IP_ADVANCED_ROUTER is not set
202CONFIG_IP_PNP=y
203CONFIG_IP_PNP_DHCP=y
204# CONFIG_IP_PNP_BOOTP is not set
205# CONFIG_IP_PNP_RARP is not set
206# CONFIG_NET_IPIP is not set
207# CONFIG_NET_IPGRE is not set
208# CONFIG_ARPD is not set
209# CONFIG_SYN_COOKIES is not set
210# CONFIG_INET_AH is not set
211# CONFIG_INET_ESP is not set
212# CONFIG_INET_IPCOMP is not set
213# CONFIG_INET_TUNNEL is not set
214CONFIG_IP_TCPDIAG=y
215# CONFIG_IP_TCPDIAG_IPV6 is not set
216# CONFIG_IPV6 is not set
217# CONFIG_NETFILTER is not set
218
219#
220# SCTP Configuration (EXPERIMENTAL)
221#
222# CONFIG_IP_SCTP is not set
223# CONFIG_ATM is not set
224# CONFIG_BRIDGE is not set
225# CONFIG_VLAN_8021Q is not set
226# CONFIG_DECNET is not set
227# CONFIG_LLC2 is not set
228# CONFIG_IPX is not set
229# CONFIG_ATALK is not set
230# CONFIG_X25 is not set
231# CONFIG_LAPB is not set
232# CONFIG_NET_DIVERT is not set
233# CONFIG_ECONET is not set
234# CONFIG_WAN_ROUTER is not set
235
236#
237# QoS and/or fair queueing
238#
239# CONFIG_NET_SCHED is not set
240# CONFIG_NET_CLS_ROUTE is not set
241
242#
243# Network testing
244#
245# CONFIG_NET_PKTGEN is not set
246# CONFIG_NETPOLL is not set
247# CONFIG_NET_POLL_CONTROLLER is not set
248# CONFIG_HAMRADIO is not set
249# CONFIG_IRDA is not set
250# CONFIG_BT is not set
251CONFIG_NETDEVICES=y
252# CONFIG_DUMMY is not set
253# CONFIG_BONDING is not set
254# CONFIG_EQUALIZER is not set
255# CONFIG_TUN is not set
256
257#
258# Ethernet (10 or 100Mbit)
259#
260# CONFIG_NET_ETHERNET is not set
261CONFIG_NE2000=y
262
263#
264# Ethernet (1000 Mbit)
265#
266
267#
268# Ethernet (10000 Mbit)
269#
270
271#
272# Token Ring devices
273#
274
275#
276# Wireless LAN (non-hamradio)
277#
278# CONFIG_NET_RADIO is not set
279
280#
281# Wan interfaces
282#
283# CONFIG_WAN is not set
284# CONFIG_PPP is not set
285# CONFIG_SLIP is not set
286# CONFIG_SHAPER is not set
287# CONFIG_NETCONSOLE is not set
288
289#
290# ISDN subsystem
291#
292# CONFIG_ISDN is not set
293
294#
295# Telephony Support
296#
297# CONFIG_PHONE is not set
298
299#
300# Input device support
301#
302CONFIG_INPUT=y
303
304#
305# Userland interfaces
306#
307# CONFIG_INPUT_MOUSEDEV is not set
308# CONFIG_INPUT_JOYDEV is not set
309# CONFIG_INPUT_TSDEV is not set
310# CONFIG_INPUT_EVDEV is not set
311# CONFIG_INPUT_EVBUG is not set
312
313#
314# Input I/O drivers
315#
316# CONFIG_GAMEPORT is not set
317CONFIG_SOUND_GAMEPORT=y
318CONFIG_SERIO=y
319# CONFIG_SERIO_I8042 is not set
320CONFIG_SERIO_SERPORT=y
321# CONFIG_SERIO_CT82C710 is not set
322# CONFIG_SERIO_LIBPS2 is not set
323# CONFIG_SERIO_RAW is not set
324
325#
326# Input Device Drivers
327#
328# CONFIG_INPUT_KEYBOARD is not set
329# CONFIG_INPUT_MOUSE is not set
330# CONFIG_INPUT_JOYSTICK is not set
331# CONFIG_INPUT_TOUCHSCREEN is not set
332# CONFIG_INPUT_MISC is not set
333
334#
335# Character devices
336#
337# CONFIG_VT is not set
338# CONFIG_SERIAL_NONSTANDARD is not set
339
340#
341# Serial drivers
342#
343# CONFIG_SERIAL_8250 is not set
344
345#
346# Non-8250 serial port support
347#
348CONFIG_SERIAL_CORE=y
349CONFIG_SERIAL_CORE_CONSOLE=y
350CONFIG_SERIAL_M32R_SIO=y
351CONFIG_SERIAL_M32R_SIO_CONSOLE=y
352# CONFIG_SERIAL_M32R_PLDSIO is not set
353CONFIG_UNIX98_PTYS=y
354CONFIG_LEGACY_PTYS=y
355CONFIG_LEGACY_PTY_COUNT=256
356
357#
358# IPMI
359#
360# CONFIG_IPMI_HANDLER is not set
361
362#
363# Watchdog Cards
364#
365# CONFIG_WATCHDOG is not set
366# CONFIG_RTC is not set
367# CONFIG_GEN_RTC is not set
368# CONFIG_DTLK is not set
369# CONFIG_R3964 is not set
370
371#
372# Ftape, the floppy tape device driver
373#
374# CONFIG_DRM is not set
375# CONFIG_RAW_DRIVER is not set
376
377#
378# I2C support
379#
380# CONFIG_I2C is not set
381
382#
383# Dallas's 1-wire bus
384#
385# CONFIG_W1 is not set
386
387#
388# Misc devices
389#
390
391#
392# Multimedia devices
393#
394# CONFIG_VIDEO_DEV is not set
395
396#
397# Digital Video Broadcasting Devices
398#
399# CONFIG_DVB is not set
400
401#
402# Graphics support
403#
404# CONFIG_FB is not set
405
406#
407# Sound
408#
409# CONFIG_SOUND is not set
410
411#
412# USB support
413#
414# CONFIG_USB_ARCH_HAS_HCD is not set
415# CONFIG_USB_ARCH_HAS_OHCI is not set
416
417#
418# NOTE: USB_STORAGE enables SCSI, and 'SCSI disk support' may also be needed; see USB_STORAGE Help for more information
419#
420
421#
422# USB Gadget Support
423#
424# CONFIG_USB_GADGET is not set
425
426#
427# MMC/SD Card support
428#
429# CONFIG_MMC is not set
430
431#
432# InfiniBand support
433#
434# CONFIG_INFINIBAND is not set
435
436#
437# File systems
438#
439CONFIG_EXT2_FS=y
440# CONFIG_EXT2_FS_XATTR is not set
441# CONFIG_EXT3_FS is not set
442# CONFIG_JBD is not set
443# CONFIG_REISERFS_FS is not set
444# CONFIG_JFS_FS is not set
445
446#
447# XFS support
448#
449# CONFIG_XFS_FS is not set
450# CONFIG_MINIX_FS is not set
451# CONFIG_ROMFS_FS is not set
452# CONFIG_QUOTA is not set
453CONFIG_DNOTIFY=y
454# CONFIG_AUTOFS_FS is not set
455# CONFIG_AUTOFS4_FS is not set
456
457#
458# CD-ROM/DVD Filesystems
459#
460# CONFIG_ISO9660_FS is not set
461# CONFIG_UDF_FS is not set
462
463#
464# DOS/FAT/NT Filesystems
465#
466# CONFIG_MSDOS_FS is not set
467# CONFIG_VFAT_FS is not set
468# CONFIG_NTFS_FS is not set
469
470#
471# Pseudo filesystems
472#
473CONFIG_PROC_FS=y
474CONFIG_SYSFS=y
475# CONFIG_DEVFS_FS is not set
476CONFIG_DEVPTS_FS_XATTR=y
477CONFIG_DEVPTS_FS_SECURITY=y
478# CONFIG_TMPFS is not set
479# CONFIG_HUGETLB_PAGE is not set
480CONFIG_RAMFS=y
481
482#
483# Miscellaneous filesystems
484#
485# CONFIG_ADFS_FS is not set
486# CONFIG_AFFS_FS is not set
487# CONFIG_HFS_FS is not set
488# CONFIG_HFSPLUS_FS is not set
489# CONFIG_BEFS_FS is not set
490# CONFIG_BFS_FS is not set
491# CONFIG_EFS_FS is not set
492# CONFIG_CRAMFS is not set
493# CONFIG_VXFS_FS is not set
494# CONFIG_HPFS_FS is not set
495# CONFIG_QNX4FS_FS is not set
496# CONFIG_SYSV_FS is not set
497# CONFIG_UFS_FS is not set
498
499#
500# Network File Systems
501#
502CONFIG_NFS_FS=y
503CONFIG_NFS_V3=y
504# CONFIG_NFS_V4 is not set
505# CONFIG_NFS_DIRECTIO is not set
506# CONFIG_NFSD is not set
507CONFIG_ROOT_NFS=y
508CONFIG_LOCKD=y
509CONFIG_LOCKD_V4=y
510CONFIG_SUNRPC=y
511# CONFIG_RPCSEC_GSS_KRB5 is not set
512# CONFIG_RPCSEC_GSS_SPKM3 is not set
513# CONFIG_SMB_FS is not set
514# CONFIG_CIFS is not set
515# CONFIG_NCP_FS is not set
516# CONFIG_CODA_FS is not set
517# CONFIG_AFS_FS is not set
518
519#
520# Partition Types
521#
522# CONFIG_PARTITION_ADVANCED is not set
523CONFIG_MSDOS_PARTITION=y
524
525#
526# Native Language Support
527#
528CONFIG_NLS=y
529CONFIG_NLS_DEFAULT="iso8859-1"
530# CONFIG_NLS_CODEPAGE_437 is not set
531# CONFIG_NLS_CODEPAGE_737 is not set
532# CONFIG_NLS_CODEPAGE_775 is not set
533# CONFIG_NLS_CODEPAGE_850 is not set
534# CONFIG_NLS_CODEPAGE_852 is not set
535# CONFIG_NLS_CODEPAGE_855 is not set
536# CONFIG_NLS_CODEPAGE_857 is not set
537# CONFIG_NLS_CODEPAGE_860 is not set
538# CONFIG_NLS_CODEPAGE_861 is not set
539# CONFIG_NLS_CODEPAGE_862 is not set
540# CONFIG_NLS_CODEPAGE_863 is not set
541# CONFIG_NLS_CODEPAGE_864 is not set
542# CONFIG_NLS_CODEPAGE_865 is not set
543# CONFIG_NLS_CODEPAGE_866 is not set
544# CONFIG_NLS_CODEPAGE_869 is not set
545# CONFIG_NLS_CODEPAGE_936 is not set
546# CONFIG_NLS_CODEPAGE_950 is not set
547# CONFIG_NLS_CODEPAGE_932 is not set
548# CONFIG_NLS_CODEPAGE_949 is not set
549# CONFIG_NLS_CODEPAGE_874 is not set
550# CONFIG_NLS_ISO8859_8 is not set
551# CONFIG_NLS_CODEPAGE_1250 is not set
552# CONFIG_NLS_CODEPAGE_1251 is not set
553# CONFIG_NLS_ASCII is not set
554# CONFIG_NLS_ISO8859_1 is not set
555# CONFIG_NLS_ISO8859_2 is not set
556# CONFIG_NLS_ISO8859_3 is not set
557# CONFIG_NLS_ISO8859_4 is not set
558# CONFIG_NLS_ISO8859_5 is not set
559# CONFIG_NLS_ISO8859_6 is not set
560# CONFIG_NLS_ISO8859_7 is not set
561# CONFIG_NLS_ISO8859_9 is not set
562# CONFIG_NLS_ISO8859_13 is not set
563# CONFIG_NLS_ISO8859_14 is not set
564# CONFIG_NLS_ISO8859_15 is not set
565# CONFIG_NLS_KOI8_R is not set
566# CONFIG_NLS_KOI8_U is not set
567# CONFIG_NLS_UTF8 is not set
568
569#
570# Profiling support
571#
572# CONFIG_PROFILING is not set
573
574#
575# Kernel hacking
576#
577# CONFIG_DEBUG_KERNEL is not set
578CONFIG_DEBUG_PREEMPT=y
579# CONFIG_DEBUG_BUGVERBOSE is not set
580# CONFIG_FRAME_POINTER is not set
581
582#
583# Security options
584#
585# CONFIG_KEYS is not set
586# CONFIG_SECURITY is not set
587
588#
589# Cryptographic options
590#
591# CONFIG_CRYPTO is not set
592
593#
594# Hardware crypto devices
595#
596
597#
598# Library routines
599#
600# CONFIG_CRC_CCITT is not set
601CONFIG_CRC32=y
602# CONFIG_LIBCRC32C is not set
diff --git a/arch/m32r/oaks32r/dot.gdbinit.nommu b/arch/m32r/oaks32r/dot.gdbinit.nommu
new file mode 100644
index 000000000000..d481d972b802
--- /dev/null
+++ b/arch/m32r/oaks32r/dot.gdbinit.nommu
@@ -0,0 +1,154 @@
1# .gdbinit file
2# $Id: dot.gdbinit.oaks32r,v 1.4 2004/10/20 02:24:37 takata Exp $
3#-----
4# NOTE: this file is generated by a script, "gen_gdbinit.pl".
5# (Please type "gen_gdbinit.pl --help" and check the help message).
6# $ Id: gen_gdbinit.pl,v 1.12 2004/07/26 09:56:10 takata Exp $
7#-----
8# target platform: oaks32r
9
10# setting
11set width 0d70
12set radix 0d16
13
14# clk xin:cpu:bus=16:66:33
15define clock_init
16 set *(unsigned long *)0x00ef4008 = 1
17 shell sleep 0.1
18 set *(unsigned long *)0x00ef4000 = 0x00020100
19end
20
21# Initialize programmable ports
22define port_init
23 set *(unsigned long *)0x00ef1000 = 0x1
24 set *(unsigned long *)0x00ef1060 = 0x01400001
25 set *(unsigned long *)0x00ef1064 = 0x00015555
26 set *(unsigned long *)0x00ef1068 = 0x55555050
27 set *(unsigned long *)0x00ef106c = 0x05150040
28end
29
30# Initialize SDRAM controller
31define sdram_init
32 set *(unsigned long *)0x00ef6008 = 0x00000182
33 set *(unsigned long *)0x00ef600c = 0x00000001
34 shell sleep 0.1
35 set *(unsigned long *)0x00ef602c = 0x00000010
36 set *(unsigned long *)0x00ef6028 = 0x00000300
37 set *(unsigned long *)0x00ef6048 = 0x00000001
38 set *(unsigned long *)0x00ef6020 = 0x01000041
39 set *(unsigned long *)0x00ef6004 = 0x00010117
40 set *(unsigned long *)0x00ef6010 = 0x00000001
41 set *(unsigned long *)0x00ef6024 = 0x00000001
42end
43document sdram_init
44 SDRAM controller initialization
45 0x01000000 - 0x017fffff (8MB)
46end
47
48# Initialize LAN controller
49define lanc_init
50 set *(unsigned long *)0x00ef5008 = 0x03031303
51 #RST DRV (P64)
52 set *(unsigned char *)0x00ef1046 = 0x08
53 set *(unsigned char *)0x00ef1026 = 0xff
54 set *(unsigned char *)0x00ef1026 = 0x00
55 set *(unsigned short *)0x02000630 = 0xffff
56end
57
58# Show current task structure
59define show_current
60 set $current = $spi & 0xffffe000
61 printf "$current=0x%08lX\n",$current
62 print *(struct task_struct *)$current
63end
64
65# Show user assigned task structure
66define show_task
67 set = $arg0 & 0xffffe000
68 printf "$task=0x%08lX\n",$task
69 print *(struct task_struct *)$task
70end
71document show_task
72 Show user assigned task structure
73 arg0 : task structure address
74end
75
76# Show M32R registers
77define show_regs
78 printf " R0[0x%08lX] R1[0x%08lX] R2[0x%08lX] R3[0x%08lX]\n",$r0,$r1,$r2,$r3
79 printf " R4[0x%08lX] R5[0x%08lX] R6[0x%08lX] R7[0x%08lX]\n",$r4,$r5,$r6,$r7
80 printf " R8[0x%08lX] R9[0x%08lX] R10[0x%08lX] R11[0x%08lX]\n",$r8,$r9,$r10,$r11
81 printf "R12[0x%08lX] FP[0x%08lX] LR[0x%08lX] SP[0x%08lX]\n",$r12,$fp,$lr,$sp
82 printf "PSW[0x%08lX] CBR[0x%08lX] SPI[0x%08lX] SPU[0x%08lX]\n",$psw,$cbr,$spi,$spu
83 printf "BPC[0x%08lX] PC[0x%08lX] ACCL[0x%08lX] ACCH[0x%08lX]\n",$bpc,$pc,$accl,$acch
84end
85
86# Setup all
87define setup
88 use_mon_code
89 set *(unsigned int)0xfffffffc=0x60
90 shell sleep 0.1
91 clock_init
92 shell sleep 0.1
93 port_init
94 sdram_init
95 lanc_init
96end
97
98# Load modules
99define load_modules
100 use_debug_dma
101 load
102end
103
104# Set kernel parameters
105define set_kernel_parameters
106 set $param = (void*)0x01001000
107 # INITRD_START
108# set *(unsigned long *)($param + 0x0010) = 0x00000000
109 # INITRD_SIZE
110# set *(unsigned long *)($param + 0x0014) = 0x00000000
111 # M32R_CPUCLK
112 set *(unsigned long *)($param + 0x0018) = 0d66666667
113 # M32R_BUSCLK
114 set *(unsigned long *)($param + 0x001c) = 0d33333333
115
116 # M32R_TIMER_DIVIDE
117 set *(unsigned long *)($param + 0x0020) = 0d128
118
119 set {char[0x200]}($param + 0x100) = "console=ttyS0,115200n8x root=/dev/nfsroot nfsroot=192.168.0.1:/project/m32r-linux/export/rootfs nfsaddrs=192.168.0.101:192.168.0.1:192.168.0.1:255.255.255.0:mappi001 \0"
120end
121
122# Boot
123define boot
124 set_kernel_parameters
125 set $fp = 0
126 set $pc = 0x01002000
127 si
128 c
129end
130
131# Set breakpoints
132define set_breakpoints
133 b *0x00000020
134 b *0x00000030
135end
136
137# Restart
138define restart
139 sdireset
140 sdireset
141 setup
142 load_modules
143 boot
144end
145
146sdireset
147sdireset
148file vmlinux
149target m32rsdi
150setup
151#load_modules
152#set_breakpoints
153#boot
154