On Sun, Feb 27, 2011 at 2:04 PM, Florian Fainelli <flor...@openwrt.org> wrote: > Hello, > > On Sunday 27 February 2011 13:12:03 Madhavi Manchala wrote: >> Dear All, >> >> Where can I find the HAL (Hardware Abstraction Layer) code in the >> OpenWRT sources? I checked out the trunk through svn. I need to change >> the RAM, FLASH, UART and MCU details in the HAL code in order to >> support our device. > > You have not mentionned which target you are talking about, which one are > working on? > -- > Florian > _______________________________________________ > openwrt-devel mailing list > openwrt-devel@lists.openwrt.org > https://lists.openwrt.org/mailman/listinfo/openwrt-devel >
Usually code for "platform devices" initialization is placed in patches and files in apropriate target directory. For example for devices with Ralink RT3050 target is "ramips" and target directory is trunk/target/linux/ramips/. Platform devices are configured by board-specific code in trunk/target/linux/ramips/files/arch/mips/ralink/rt305x/mach-* files, than initialised in trunk/target/linux/ramips/files/arch/mips/ralink/rt305x/devices.c Early serial and ram in trunk/target/linux/ramips/files/arch/mips/ralink/rt305x/setup.c All files from trunk/target/linux/ramips/files are added to lnx kernel, than patches from trunk/target/linux/ramips/patches-[kernel version] are applied - theese the files you should concentrate on, when booting new device. Lnx kernels does not offer HAL, but instead features like platform devices are avaliable -- Pozdrawiam, Sławomir Cygan _______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel