Re: Booting kernel 2.6.37+ for renesas sh on sh2a 7203

Fabio Giovagnini
2011-01-17T21:30:28Z

Where could I find the exact sequence of command I have to execute to build and
run under u-boot the kernel?
I did:
make uImage and I got the following:

Is there anything wrong?
I used the toolchain
sh7203-uclinux-4.4-206
and with the same u-boot is built and executed properly.

Thanks in advance

fgiovagnini@aurio01:~/sh7203/sh7203-uclinux-4.4-206/build$ make -f
Makefile.sh-2.6

***************************************************
*** Building Linux ***
***************************************************
make -C /home/fgiovagnini/sh7203/sh7203-uclinux-4.4-206/build/../sh-2.6
ARCH=sh CROSS_COMPILE=sh-uclinux- uImage
make[1]: ingresso nella directory «/home/fgiovagnini/sh7203/sh7203-
uclinux-4.4-206/sh-2.6»
CHK include/linux/version.h
CHK include/generated/utsrelease.h
make[2]: «include/generated/machtypes.h» è aggiornato.
CALL scripts/checksyscalls.sh
CHK include/generated/compile.h
GEN .version
CHK include/generated/compile.h
UPD include/generated/compile.h
CC init/version.o
LD init/built-in.o
LD .tmp_vmlinux1
sh-uclinux-ld: Warning: size of symbol `read_persistent_clock' changed from 24
in arch/sh/kernel/built-in.o to 16 in kernel/built-in.o
sh-uclinux-ld: Warning: size of symbol `arch_probe_nr_irqs' changed from 28 in
arch/sh/kernel/built-in.o to 12 in kernel/built-in.o
sh-uclinux-ld: Warning: size of symbol `perf_callchain_kernel' changed from 96
in arch/sh/kernel/built-in.o to 10 in kernel/built-in.o
sh-uclinux-ld: Warning: size of symbol `perf_pmu_name' changed from 30 in
arch/sh/kernel/built-in.o to 18 in kernel/built-in.o
sh-uclinux-ld: Warning: size of symbol `arch_dup_task_struct' changed from 104
in arch/sh/kernel/built-in.o to 28 in kernel/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_mremap' changed from 12 in
kernel/built-in.o to 108 in mm/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_signalfd4' changed from 12 in
kernel/built-in.o to 340 in fs/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_io_setup' changed from 12 in
kernel/built-in.o to 894 in fs/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_io_cancel' changed from 12 in
kernel/built-in.o to 332 in fs/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_eventfd' changed from 12 in
kernel/built-in.o to 24 in fs/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_epoll_create' changed from 12 in
kernel/built-in.o to 32 in fs/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_ioprio_set' changed from 12 in
kernel/built-in.o to 480 in fs/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_epoll_pwait' changed from 12 in
kernel/built-in.o to 256 in fs/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_epoll_ctl' changed from 12 in
kernel/built-in.o to 916 in fs/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_epoll_wait' changed from 12 in
kernel/built-in.o to 664 in fs/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_inotify_add_watch' changed from 12
in kernel/built-in.o to 648 in fs/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_signalfd' changed from 12 in
kernel/built-in.o to 24 in fs/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_eventfd2' changed from 12 in
kernel/built-in.o to 104 in fs/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_epoll_create1' changed from 12 in
kernel/built-in.o to 260 in fs/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_timerfd_settime' changed from 12
in kernel/built-in.o to 440 in fs/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_inotify_init' changed from 12 in
kernel/built-in.o to 24 in fs/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_inotify_init1' changed from 12 in
kernel/built-in.o to 292 in fs/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_io_submit' changed from 12 in
kernel/built-in.o to 24 in fs/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_bdflush' changed from 12 in
kernel/built-in.o to 120 in fs/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_timerfd_create' changed from 12 in
kernel/built-in.o to 164 in fs/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_flock' changed from 12 in
kernel/built-in.o to 264 in fs/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_timerfd_gettime' changed from 12
in kernel/built-in.o to 316 in fs/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_inotify_rm_watch' changed from 12
in kernel/built-in.o to 132 in fs/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_ioprio_get' changed from 12 in
kernel/built-in.o to 496 in fs/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_io_getevents' changed from 12 in
kernel/built-in.o to 776 in fs/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_io_destroy' changed from 12 in
kernel/built-in.o to 44 in fs/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_lookup_dcookie' changed from 12 in
kernel/built-in.o to 284 in fs/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_msgget' changed from 12 in
kernel/built-in.o to 80 in ipc/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_shmdt' changed from 12 in
kernel/built-in.o to 140 in ipc/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_msgrcv' changed from 12 in
kernel/built-in.o to 92 in ipc/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_semget' changed from 12 in
kernel/built-in.o to 104 in ipc/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_semctl' changed from 12 in
kernel/built-in.o to 180 in ipc/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_semtimedop' changed from 12 in
kernel/built-in.o to 1300 in ipc/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_shmctl' changed from 12 in
kernel/built-in.o to 1088 in ipc/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_msgsnd' changed from 12 in
kernel/built-in.o to 60 in ipc/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_semop' changed from 12 in
kernel/built-in.o to 24 in ipc/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_shmat' changed from 12 in
kernel/built-in.o to 40 in ipc/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_msgctl' changed from 12 in
kernel/built-in.o to 772 in ipc/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_shmget' changed from 12 in
kernel/built-in.o to 88 in ipc/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_ipc' changed from 12 in
kernel/built-in.o to 444 in ipc/built-in.o
sh-uclinux-ld: Warning: size of symbol `__div64_32' changed from 56 in
arch/sh/lib/lib.a(div64-generic.o) to 172 in lib/built-in.o
KSYM .tmp_kallsyms1.S
AS .tmp_kallsyms1.o
LD .tmp_vmlinux2
sh-uclinux-ld: Warning: size of symbol `read_persistent_clock' changed from 24
in arch/sh/kernel/built-in.o to 16 in kernel/built-in.o
sh-uclinux-ld: Warning: size of symbol `arch_probe_nr_irqs' changed from 28 in
arch/sh/kernel/built-in.o to 12 in kernel/built-in.o
sh-uclinux-ld: Warning: size of symbol `perf_callchain_kernel' changed from 96
in arch/sh/kernel/built-in.o to 10 in kernel/built-in.o
sh-uclinux-ld: Warning: size of symbol `perf_pmu_name' changed from 30 in
arch/sh/kernel/built-in.o to 18 in kernel/built-in.o
sh-uclinux-ld: Warning: size of symbol `arch_dup_task_struct' changed from 104
in arch/sh/kernel/built-in.o to 28 in kernel/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_mremap' changed from 12 in
kernel/built-in.o to 108 in mm/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_signalfd4' changed from 12 in
kernel/built-in.o to 340 in fs/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_io_setup' changed from 12 in
kernel/built-in.o to 894 in fs/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_io_cancel' changed from 12 in
kernel/built-in.o to 332 in fs/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_eventfd' changed from 12 in
kernel/built-in.o to 24 in fs/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_epoll_create' changed from 12 in
kernel/built-in.o to 32 in fs/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_ioprio_set' changed from 12 in
kernel/built-in.o to 480 in fs/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_epoll_pwait' changed from 12 in
kernel/built-in.o to 256 in fs/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_epoll_ctl' changed from 12 in
kernel/built-in.o to 916 in fs/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_epoll_wait' changed from 12 in
kernel/built-in.o to 664 in fs/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_inotify_add_watch' changed from 12
in kernel/built-in.o to 648 in fs/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_signalfd' changed from 12 in
kernel/built-in.o to 24 in fs/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_eventfd2' changed from 12 in
kernel/built-in.o to 104 in fs/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_epoll_create1' changed from 12 in
kernel/built-in.o to 260 in fs/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_timerfd_settime' changed from 12
in kernel/built-in.o to 440 in fs/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_inotify_init' changed from 12 in
kernel/built-in.o to 24 in fs/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_inotify_init1' changed from 12 in
kernel/built-in.o to 292 in fs/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_io_submit' changed from 12 in
kernel/built-in.o to 24 in fs/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_bdflush' changed from 12 in
kernel/built-in.o to 120 in fs/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_timerfd_create' changed from 12 in
kernel/built-in.o to 164 in fs/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_flock' changed from 12 in
kernel/built-in.o to 264 in fs/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_timerfd_gettime' changed from 12
in kernel/built-in.o to 316 in fs/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_inotify_rm_watch' changed from 12
in kernel/built-in.o to 132 in fs/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_ioprio_get' changed from 12 in
kernel/built-in.o to 496 in fs/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_io_getevents' changed from 12 in
kernel/built-in.o to 776 in fs/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_io_destroy' changed from 12 in
kernel/built-in.o to 44 in fs/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_lookup_dcookie' changed from 12 in
kernel/built-in.o to 284 in fs/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_msgget' changed from 12 in
kernel/built-in.o to 80 in ipc/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_shmdt' changed from 12 in
kernel/built-in.o to 140 in ipc/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_msgrcv' changed from 12 in
kernel/built-in.o to 92 in ipc/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_semget' changed from 12 in
kernel/built-in.o to 104 in ipc/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_semctl' changed from 12 in
kernel/built-in.o to 180 in ipc/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_semtimedop' changed from 12 in
kernel/built-in.o to 1300 in ipc/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_shmctl' changed from 12 in
kernel/built-in.o to 1088 in ipc/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_msgsnd' changed from 12 in
kernel/built-in.o to 60 in ipc/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_semop' changed from 12 in
kernel/built-in.o to 24 in ipc/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_shmat' changed from 12 in
kernel/built-in.o to 40 in ipc/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_msgctl' changed from 12 in
kernel/built-in.o to 772 in ipc/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_shmget' changed from 12 in
kernel/built-in.o to 88 in ipc/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_ipc' changed from 12 in
kernel/built-in.o to 444 in ipc/built-in.o
sh-uclinux-ld: Warning: size of symbol `__div64_32' changed from 56 in
arch/sh/lib/lib.a(div64-generic.o) to 172 in lib/built-in.o
KSYM .tmp_kallsyms2.S
AS .tmp_kallsyms2.o
LD vmlinux
sh-uclinux-ld: Warning: size of symbol `read_persistent_clock' changed from 24
in arch/sh/kernel/built-in.o to 16 in kernel/built-in.o
sh-uclinux-ld: Warning: size of symbol `arch_probe_nr_irqs' changed from 28 in
arch/sh/kernel/built-in.o to 12 in kernel/built-in.o
sh-uclinux-ld: Warning: size of symbol `perf_callchain_kernel' changed from 96
in arch/sh/kernel/built-in.o to 10 in kernel/built-in.o
sh-uclinux-ld: Warning: size of symbol `perf_pmu_name' changed from 30 in
arch/sh/kernel/built-in.o to 18 in kernel/built-in.o
sh-uclinux-ld: Warning: size of symbol `arch_dup_task_struct' changed from 104
in arch/sh/kernel/built-in.o to 28 in kernel/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_mremap' changed from 12 in
kernel/built-in.o to 108 in mm/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_signalfd4' changed from 12 in
kernel/built-in.o to 340 in fs/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_io_setup' changed from 12 in
kernel/built-in.o to 894 in fs/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_io_cancel' changed from 12 in
kernel/built-in.o to 332 in fs/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_eventfd' changed from 12 in
kernel/built-in.o to 24 in fs/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_epoll_create' changed from 12 in
kernel/built-in.o to 32 in fs/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_ioprio_set' changed from 12 in
kernel/built-in.o to 480 in fs/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_epoll_pwait' changed from 12 in
kernel/built-in.o to 256 in fs/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_epoll_ctl' changed from 12 in
kernel/built-in.o to 916 in fs/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_epoll_wait' changed from 12 in
kernel/built-in.o to 664 in fs/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_inotify_add_watch' changed from 12
in kernel/built-in.o to 648 in fs/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_signalfd' changed from 12 in
kernel/built-in.o to 24 in fs/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_eventfd2' changed from 12 in
kernel/built-in.o to 104 in fs/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_epoll_create1' changed from 12 in
kernel/built-in.o to 260 in fs/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_timerfd_settime' changed from 12
in kernel/built-in.o to 440 in fs/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_inotify_init' changed from 12 in
kernel/built-in.o to 24 in fs/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_inotify_init1' changed from 12 in
kernel/built-in.o to 292 in fs/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_io_submit' changed from 12 in
kernel/built-in.o to 24 in fs/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_bdflush' changed from 12 in
kernel/built-in.o to 120 in fs/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_timerfd_create' changed from 12 in
kernel/built-in.o to 164 in fs/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_flock' changed from 12 in
kernel/built-in.o to 264 in fs/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_timerfd_gettime' changed from 12
in kernel/built-in.o to 316 in fs/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_inotify_rm_watch' changed from 12
in kernel/built-in.o to 132 in fs/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_ioprio_get' changed from 12 in
kernel/built-in.o to 496 in fs/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_io_getevents' changed from 12 in
kernel/built-in.o to 776 in fs/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_io_destroy' changed from 12 in
kernel/built-in.o to 44 in fs/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_lookup_dcookie' changed from 12 in
kernel/built-in.o to 284 in fs/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_msgget' changed from 12 in
kernel/built-in.o to 80 in ipc/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_shmdt' changed from 12 in
kernel/built-in.o to 140 in ipc/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_msgrcv' changed from 12 in
kernel/built-in.o to 92 in ipc/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_semget' changed from 12 in
kernel/built-in.o to 104 in ipc/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_semctl' changed from 12 in
kernel/built-in.o to 180 in ipc/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_semtimedop' changed from 12 in
kernel/built-in.o to 1300 in ipc/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_shmctl' changed from 12 in
kernel/built-in.o to 1088 in ipc/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_msgsnd' changed from 12 in
kernel/built-in.o to 60 in ipc/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_semop' changed from 12 in
kernel/built-in.o to 24 in ipc/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_shmat' changed from 12 in
kernel/built-in.o to 40 in ipc/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_msgctl' changed from 12 in
kernel/built-in.o to 772 in ipc/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_shmget' changed from 12 in
kernel/built-in.o to 88 in ipc/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_ipc' changed from 12 in
kernel/built-in.o to 444 in ipc/built-in.o
sh-uclinux-ld: Warning: size of symbol `__div64_32' changed from 56 in
arch/sh/lib/lib.a(div64-generic.o) to 172 in lib/built-in.o
SYSMAP System.map
SYSMAP .tmp_System.map
OBJCOPY arch/sh/boot/vmlinux.bin
GZIP arch/sh/boot/vmlinux.bin.gz
UIMAGE arch/sh/boot/uImage.gz
Image Name: Linux-2.6.37+
Created: Mon Jan 17 22:27:07 2011
Image Type: SuperH Linux Kernel Image (gzip compressed)
Data Size: 975877 Bytes = 953.00 kB = 0.93 MB
Load Address: 0x0C001000
Entry Point: 0x0C002000
Image arch/sh/boot/uImage is ready
make[1]: uscita dalla directory «/home/fgiovagnini/sh7203/sh7203-
uclinux-4.4-206/sh-2.6»
make -C /home/fgiovagnini/sh7203/sh7203-uclinux-4.4-206/build/../sh-2.6
ARCH=sh CROSS_COMPILE=sh-uclinux- modules
make[1]: ingresso nella directory «/home/fgiovagnini/sh7203/sh7203-
uclinux-4.4-206/sh-2.6»
CHK include/linux/version.h
CHK include/generated/utsrelease.h
make[2]: «include/generated/machtypes.h» è aggiornato.
CALL scripts/checksyscalls.sh
Building modules, stage 2.
MODPOST 1 modules
make[1]: uscita dalla directory «/home/fgiovagnini/sh7203/sh7203-
uclinux-4.4-206/sh-2.6»
mkdir -p /home/fgiovagnini/sh7203/sh7203-uclinux-4.4-206/build/sh7203-
images/root_fs/lib/modules
cd /home/fgiovagnini/sh7203/sh7203-uclinux-4.4-206/build/../sh-2.6/drivers; \
cp `find . -name '*.ko' -print` /home/fgiovagnini/sh7203/sh7203-
uclinux-4.4-206/build/sh7203-images/root_fs/lib/modules

***************************************************
*** Building Complete ***
***************************************************

On Monday 17 January 2011 09:55:28 Paul Mundt wrote:
> On Mon, Jan 17, 2011 at 09:55:15AM +0100, Fabio Giovagnini wrote:
> > Thanks Paul for your answer.
> > Did you use uBoot for booting, or the MCP data bootloader?
>
> The only boards I have all have uboot on them. The uboot version I use is
> a bit buggy though so I often have to use trimmed down kernels for the
> decompression to succeed (Iwamatsu-san did the initial port as I recall,
> and I don't think its had much attention since then). I'm unaware of
> whether other versions of the board have the same issues or not. I've
> never seen the MPC loader, so if you're using that then of course you
> will have to ask them for support.