01:29:54 | prpplague | morning Sammy |
01:31:11 | Sammy | howdy prpplague :) |
01:31:40 | Sammy | prpplague: anything new ? |
03:21:15 | prpplague | Sammy: nothing new, just spending some quality time learn more c/c++ |
04:44:15 | Sammy | prpplague : mandarin ? is this ? http://www.cc.nctu.edu.tw/~u8832801/forbid/King/king1.htm |
04:48:28 | prpplague | Sammy: nice, but i don't read mandarin yet |
04:50:14 | Sammy | prpplague : you can add zh-TW (BIG5) support, then you can read it ... |
04:54:24 | prpplague | ahh |
05:43:30 | Russ | I can see the letters |
05:43:33 | Russ | but I surely can't read it |
05:51:48 | Sammy | Russ: on it with their picture is his name and some personal info ... :) |
05:54:52 | Sammy | like name , birthday , his mother is , how long has he be the an emperor , dying at, how many child ..etc... |
06:54:41 | Russ | oh I just noticed |
06:54:55 | Russ | in gnome2, that mandarian webpage title shows up in my taskbar |
06:54:58 | Russ | er panel |
06:55:13 | Russ | Sammy: do you have gnome2/gtk2 running yet? |
07:03:31 | seletz | morning |
07:05:49 | Sammy | seletz: Good afternoon |
07:08:07 | seletz | Sammy: hi :) |
07:26:30 | mmatten | morning all |
07:34:44 | Sammy | Russ: nope , I still use enlightenment. |
08:45:01 | Sammy | Starting kernel ... |
08:45:02 | Sammy | Uncompressing Linux.................................................. done, booting the kernel. |
08:45:04 | Sammy | Error: a |
08:45:04 | Sammy | anyone know's what's wrong ... ? |
08:46:04 | erikm | Sammy: look in the kernel source in arch/arm/*, the kernel prints 'Error: a' if something's wrong at a certain point |
08:50:07 | Sammy | erikm: K , check it out ... |
09:09:07 | seletz | wrong arch i suspect |
09:09:29 | seletz | supply an arch number if i'm correct |
09:10:26 | seletz | Sammy: if you're using blob: the arch you compile blob for must match the arch the kernel is compiled for |
09:13:01 | Sammy | seletz: can you point me at which file ? |
09:13:51 | Sammy | becaues I actually did modify some file to other platform, and it's happen ... |
09:22:14 | seletz | Sammy: well, what do you want? Run a kernel on what platform? Have you blob compiled for that platform? |
09:23:07 | seletz | Sammy: i.e. configure --with-board=XXXXX |
09:23:24 | Sammy | blob can run , but kernel can't |
09:24:00 | seletz | Sammy: yes. Which board/device are you running blob on? |
09:24:34 | Sammy | assabet (alike) |
09:24:54 | seletz | Sammy: have an architecture number for that device allocated? |
09:25:07 | seletz | Sammy: BTW, most boards are assabet-like .... |
09:26:05 | seletz | Sammy: you have to have an unique architecture number (or _for_testing_only_ you may simply grab an existing one [i.e. assabet]). |
09:26:11 | Sammy | 125 |
09:26:28 | seletz | Sammy: but you have to compile both blob and the kernel for exactly that architecture. |
09:27:37 | Sammy | yes blob have , but kernel... |
09:27:45 | seletz | Sammy: each ARM arch got an unique arch number by Russell King. This arch number is handed from the boot loader (blob) to the kernel startup routine. |
09:27:48 | Sammy | I don't know where to add... |
09:28:00 | seletz | Sammy: what did you configure the kernel for? |
09:28:19 | seletz | Sammy: make menuconfig and select platform |
09:28:50 | Sammy | base always on assabet .and it's can run |
09:29:05 | seletz | Sammy: BTW, you cant just select a random number. You have to get a number from Russell King. |
09:29:21 | Sammy | I have ... |
09:29:24 | seletz | Sammy: so: blob == assabet, kernel == assabet? |
09:30:02 | Sammy | seletz: http://www.arm.linux.org.uk/developer/machines/ at 125 |
09:30:23 | Sammy | but I don't know where add this into kenrel |
09:30:46 | Sammy | so if blob==assabet and kernel==assabet it's can run... |
09:30:49 | seletz | ok. There's the problem |
09:31:04 | seletz | 1) port blob |
09:31:04 | Sammy | but if blob==puppy , kernel==puppy can't |
09:31:21 | Sammy | did it already .. |
09:31:33 | seletz | so you have --with-board=puppy |
09:31:54 | seletz | in blob |
09:31:57 | Sammy | yes, but still don't send the patch to erikm ... :( |
09:32:06 | seletz | ok, doesnt matter |
09:32:14 | seletz | sammy, this blob runs, yes? |
09:32:25 | Sammy | yeap |
09:32:37 | seletz | and supplies number 125 as arch number? |
09:32:55 | Sammy | yes |
09:33:03 | seletz | ok. now to the kernel |
09:33:16 | seletz | have you a arch/arm/sa1100/puppy.c |
09:33:21 | Sammy | yes |
09:33:25 | seletz | ok. |
09:33:42 | seletz | have you updated the kernel makefiles for your arch? |
09:34:08 | Sammy | which makefile ? |
09:34:15 | seletz | one moment pls |
09:35:04 | seletz | arch/arm/mach-sa1100/Makefile |
09:35:38 | Sammy | Amm... |
09:36:09 | seletz | and update arch/arm/config.in so you see puppy when you do make menuconfig. |
09:36:43 | Sammy | this line : obj-$(CONFIG_SA1100_PUPPY) += puppy.o I have |
09:36:59 | Sammy | and |
09:37:20 | seletz | Sammy: config.in: used by make *config to create menus and then to create those CONFIG_XXXX defines based on your selection. You must add a menu choice for CONFIG_SA1100_PUPPY |
09:38:01 | Sammy | dep_bool ' Puppy' CONFIG_SA1100_PUPPY $CONFIG_ARCH_SA1100 |
09:38:09 | Sammy | did it too... |
09:39:10 | seletz | do a grep PUPPY linux/.config |
09:39:11 | Sammy | seletz: but I still don't get any info abut kernel arch number ? where to add it ? |
09:39:22 | seletz | you dont |
09:39:36 | seletz | its automatically generated |
09:39:54 | seletz | arch/arm/tools/mach-types |
09:40:19 | seletz | grrr |
09:40:27 | Sammy | CONFIG_SA1100_PUPPY=y |
09:40:37 | seletz | your define is CONFIG_ARCH_PUPPY _not_ COBFIG_SA1100_PUPPY |
09:40:40 | Sammy | [root@sammy src]# grep PUPPY linux/.config |
09:40:41 | Sammy | CONFIG_SA1100_PUPPY=y |
09:41:01 | seletz | grep PUPPY arch/arm/tools/mach-types |
09:41:58 | seletz | am i right |
09:41:59 | seletz | ? |
09:42:03 | Sammy | puppy ARCH_PUPPY PUPPY 125 |
09:42:07 | Sammy | is this ? |
09:42:16 | seletz | yup |
09:42:22 | seletz | quick hack: |
09:42:33 | seletz | change ARCH_PUPPY to SA1100_PUPPY |
09:42:40 | seletz | and recompile your kernel |
09:43:19 | seletz | _but_beware_: dont keep it that way. Change your defines to CONFIG_ARCH_PUPPY |
09:44:41 | Sammy | ? |
09:44:50 | Sammy | CONFIG_ARCH_PUPPY ? |
09:44:54 | Sammy | where ? |
09:45:05 | seletz | edit arch/arm/tools/mach-types |
09:45:15 | Sammy | doing... |
09:45:26 | seletz | change ARCH_PUPPY to SA1100_PUPPY |
09:45:34 | Sammy | ok.. |
09:45:35 | seletz | dont add CONFIG_ |
09:45:48 | Sammy | Oh, I know ... |
09:46:15 | seletz | the makefiles in that dir auto-create a header file containing arch defines from that file. |
09:46:35 | seletz | i.e. #define CONFIG_ARCH_PUPPY (125) or similar |
09:47:10 | seletz | erm, no. sorry |
09:47:19 | Sammy | so gaa |
09:47:21 | seletz | they #define MACH_ARCH_PUPPY (125) |
09:48:16 | seletz | the CONGIG_ARCH_PUPPY is created from make *config. And that's why your build failed to include puppy stuff: |
09:49:10 | seletz | you specified CONGIG_SA1100_PUPPY in config.in, but mach-types says it's called CONGIG_ARCH_PUPPY. See it? |
09:50:09 | seletz | the machine_is*() macros are also auto-generated. |
09:50:38 | Sammy | amm....go back , two line , where is CONFIG_ARCH_PUPPY |
09:52:24 | Sammy | sorry , seletz confuse at #define MACH_ARCH_PUPPY , |
09:53:27 | seletz | so, sammy, do you understand now the error? |
09:54:23 | Sammy | seletz: sorry, still confuse at last few line , can you point me more detail |
09:54:38 | seletz | ok. From start. |
09:55:06 | seletz | your makefile in arch/arm/mach-sa1100/Makefile specifies something like: |
09:55:24 | seletz | obj-$(CONFIG_SA1100_PUPPY) += puppy.o |
09:55:57 | seletz | so, for this to work CONFIG_SA1100_PUPPY must be set to "y". This is done |
09:55:59 | Sammy | |O| I got it .... |
09:56:05 | seletz | by make config. |
09:56:43 | seletz | Sammy: test: What are you gonna do now? |
09:57:30 | Sammy | change this line : |
09:57:48 | Sammy | ARCH_PUPPY to SA1100_PUPPY |
09:57:56 | seletz | where |
09:58:10 | Sammy | arch/arm/tools/mach-types |
09:58:17 | seletz | ok, and then? |
09:58:38 | Sammy | make again |
09:58:54 | seletz | yes, suppose it works, what do you do next? |
09:59:31 | Sammy | you mean setp ? |
09:59:47 | Sammy | or ? |
10:00:47 | seletz | ok: you generally _must_ _not_ touch mach-types. Its only a hack to test your kernel. If it works, change it to the original state and chande your Makefiles and config.in files to CONFIG_ARCH_PUPPY. Got it? |
10:01:27 | seletz | Sammy: mach-types gets autogenerated by itself from Russell Kings machine database. |
10:02:07 | Sammy | Oh , I know , don't change mach-type , must change config.in to match Russell Kings rule right ? |
10:02:15 | seletz | yeah |
10:02:33 | seletz | thinks sammy got it now :) |
10:02:43 | Sammy | THANKS A LOT seletz :) |
10:03:14 | seletz | Sammy: last tip: grep PUPPY .config _before_ you compile & flash the kernel ... |
10:03:25 | seletz | SIGLUNCH |
10:03:37 | seletz | Sammy: no problem. glad to help. |
10:03:45 | Sammy | k , I'll remember |
10:15:40 | voland | is away: I'm busy |
14:11:43 | seletz | prpplague: hi |
14:38:51 | prpplague | seletz: morning |
15:33:08 | seletz_home | see ya |