Well, i can't exactly do what you suggested, as the FLASH contains the bootloader, which starts the final kernel from the USB flash-disk. Unfortunately currently I have no acces to the source and binaries of this bootloader, so I don't want to overwrite it.
This setup I have used for some time, as described in https://forum.openwrt.org/viewtopic.php?id=23901
but now I wanted to recompile the "final" image from the newest sources.
The image, which I have compiled from the current trunk is just a kernel with base system in initramfs.
The output of the nvram show is below (with MAC addresses modified for privacy reasons).
ddns_server_x=
btn_enable=1
usb_bannum_x=0
asus_mfg_webcam=
boardnum=45
asus_mfg_flash=
wl_wsc_mode=enabled
acc_password0=test
wl0_wds_timeout=1
sr_netmask_x=
wl_bss_enabled=1
fw_log_x=none
wl_radio_power_x=17
tri2g=78
wan0_ipaddr_t=
wl0_channel=0
wl_wme_no_ack=off
wan0_pppoe_username=
usb_disc0_path4=
usb_disc0_path5=
usb_disc0_path6=
lan_hwnames=
usb_disc0_path0=
wl_radio_date_x=1111111
usb_disc0_path1=
pa0b0=0x1068
autofw_outproto_x=
usb_disc0_path2=
pa0b1=0xFA94
usb_disc0_path3=
pa0b2=0xFE76
wl_radio=1
wsc_addER=0
usb_ftpscript_x=
wl_nmcsidx=-1
usb_storage_busy=0
apps_pool=harddisk/part0
sr_ipaddr_x=
usb_disc0_dev=
usb_disc1_fs_path5=
usb_disc1_fs_path6=
landevs=vlan0 wl0
usb_disc1_fs_path1=
usb_disc0_fs_path4=
wsc_modelnum=123456
autofw_inproto_x=
usb_disc1_fs_path2=
usb_disc0_fs_path5=
vts_enable_x=1
usb_disc1_fs_path3=
usb_disc0_fs_path6=
apps_dms_usb_port_x=-1
usb_disc1_fs_path4=
wsc_cli=0
usb_disc0_fs_path0=
usb_webremote3_x=
usb_disc0_fs_path1=
st_samba_mode=1
no_br=0
usb_disc0_fs_path2=
filter_wl_srcport_x=
usb_disc1_fs_path0=
usb_disc0_fs_path3=
wl_radio_time_x=00002359
dhcp_staticip_x=
wl0_wpa_gtk_rekey=0
wan0_dnsenable_x=1
wl0_key=1
wl_wep=disabled
wl_nbw_cap=2
wl0_rts=2347
wan_pppoe_relay_x=0
wan_ifname_t=eth0
qos_enable=0
hardware_version=WL500GPV2-01-06-04-00
apps_dl_x=-1
wan0_lease=3600
wan0_route_x=IP_Routed
qos_manual_ubw=0
acc_num=1
wl0_wdsnum_x=0
wl_auth=0
sdram_ncdl=0xffe09
wan0_netmask_t=
computer_nameb=WL-500gPV2
st_samba_workgroupb=WORKGROUP
lan_ifname=br0
wan0_nat_x=1
qos_global_enable=0
wl_wds=
preferred_lang=EN
wl0_phytypes=l
wan0_netmask=255.255.0.0
wl_radius_key=
wl0_maxassoc=128
wan_dns_t=
wan_pptp_options_x=
usb_webremote_x=LAN Only
qos_service_name_x=
usb_path1.1=
usb_path1.2=
st_ftp_mode=1
wl_crypto=tkip
wan0_domain=
ure_disable=1
pa0maxpwr=60
usb_webhttpport_x=7776
wl0_wme_bss_disable=0
ntp_server=192.5.41.40 192.5.41.41 133.100.9.2
usb_webremote4_x=
usb_ftpmax_x=12
sr_rip_x=0
wl_rate=0
wan0_gateway_t=
qos_dfragment_size=0
rssisav2g=2
pa0itssit=62
wan0_pppoe_txonly_x=0
wl0_wsc_mode=enabled
ddns_enable_x=0
rssismc2g=2
wsc_device_name=ASUS Wireless Router
wl_key1=10FFF83083C79D502FE0F13EE0
qos_pshack_prio=0
wl_key2=10FFF83083C79D502FE0F13EE0
wl_key3=10FFF83083C79D502FE0F13EE0
wl_key4=10FFF83083C79D502FE0F13EE0
time_zone_x=UCT-1
dhcp_wins=wan
wsc_mfstring=ASUSTek
wl_macapply_x=Both
os_server=
wan0_pppoe_relay_x=0
wl_wep_x1=2
x_Setting=1
usb_webcaption_x=Web Camera Live Demo!!!
wan_netmask_t=
usb_vidpid=424/2502/1
wan0_pppoe_ac=
wan0_pppoe_keepalive=0
wl0_wpa_mode=0
wl_wme_txp_vo=7 3 4 2 0
wl0gpio2=11
wl_wme_txp_vi=7 3 4 2 0
dr_default_x=1
wl0gpio3=11
wan0_mode_x=2
wl0_plcphdr=long
wl_wpa_gtk_rekey=0
wl0gpio0=11
wl0_macmode=disabled
usb_printer_device=
lan_dhcp=0
wl0gpio1=0x02
fw_lw_enable_x=0
wl0_bss_maxassoc=128
misc_lpr_x=0
usb_ftpstaytimeout_x=240
filter_lw_num_x=0
ag0=2
mr_enable_x=0
wan_hwaddr_x=
usb_websense_x=1
wl_lazywds=0
MFP_busy=0
wan0_pppoe_ifname=
wl0_macnum_x=0
os_date=Sep 1 2008
usb_webremote5_x=
http_lanport=80
wl_nband=2
usb_ftpenable_x=1
filter_lw_date_x=1111111
wl_gmode=1
filter_lw_icmp_x=
filter_wl_icmp_x=
vts_port_x=
dhcp_end=192.168.1.254
filter_wl_date_x=1111111
wl0_wme_no_ack=off
vts_desc_x=
acc_username0=test
wan_gateway=
vlan0ports=0 1 2 3 5*
lan_route=
wl_net_reauth=36000
lan1_ipaddr=
wsc_device_pin=96077689
ddns_status_t=
lan_gateway=
wl0_gmode_protection_x=1
wl0.1_hwaddr=00:11:22:33:44:56
filter_lw_time_x=00002359
wan_lease=86400
bxa2g=1
filter_wl_time_x=00002359
restore_defaults=0
usb_webmserver_x=
wan_nat_x=1
wl_maxassoc=128
wl0_akm=
wl0_radarthrs=1 0x6c0 0x6e0 0x6bc 0x6e0 0x6ac 0x6cc 0x6bc 0x6e0
br0_ifnames=vlan0 eth1
wl_gmode_protection_x=1
wl_nctrlsb=none
il0macaddr=00:11:22:33:44:54
usb_webremote6_x=
wsc_status=0
wan0_primary=1
wan_pppoe_ifname=
firmver=3.0.3.1
acc_password=
wan_heartbeat_x=
wan_proto_t=Automatic IP
usb_path=1
upnp_enable=1
wl0_wme_ap_bk=15 1023 7 0 0 off off
sh_=
wan0_ifnames=eth0
wl0_corerev=13
wl_key=1
ddns_hostname_x=
lan_proto_x=1
swap_on=0
wl0_radius_key=
autofw_enable_x=0
wl0_wme_ap_be=15 63 3 0 0 off off
qos_tos_prio=0
wl_ap_isolate=0
lan_wins=
wsc_proc_status=0
wl0_maclist=
wl_rts=2347
wl_wpa_mode=0
wcn_enable=1
wl0_hwaddr=00:11:22:33:44:56
ezc_version=2
wl0_preauth=enabled
wan_state_changed=0
wsc_timeout_enable=0
wl_channel=0
wl_wme_sta_bk=15 1023 7 0 0 off off
st_samba_modex=1
wl_wme_sta_be=15 1023 3 0 0 off off
wan_hostname=
wan_status_t=Disconnected
wl0_radio=1
fw_enable_x=1
usb_webattach_x=1
wan_ifname=eth0
filter_lw_default_x=ACCEPT
wsc_waiting=0
macfilter_list_x=
usb_disc1_port=0
os_version=4.151.10.29
app_running=0
wl0_macapply_x=Both
usb_disc1_safely_removed=0
wl_ifname=
wan_wins=
misc_natlog_x=0
wl_frameburst=off
wl_macnum_x=0
wl0_wme_txp_vo=7 3 4 2 0
usb_webenable_x=1
wl_wme_ap_vo=3 7 1 3264 1504 off off
wl_wme_ap_vi=7 15 1 6016 3008 off off
rssismf2g=0
apps_dl_share=0
wl0_wme_txp_vi=7 3 4 2 0
wl0_txstreams=0
usb_path_printer=
sdram_config=0x0062
dmz_ipaddr=
wan0_wins=
usb_device=1
wl0_nbw=20
url_enable_x=0
vlan1hwname=et0
aa0=3
wl_unit=0
wan0_route=
wan0_pppoe_demand=0
usb_disc1_pid=
qos_shortpkt_prio=0
eject_from_web=0
acc_=
wl_wep_x=2
filter_lw_srcport_x=
wl0_auth=0
test=zmienna
wsc_sta_pin=0
apps_ver=
wsc_config_state=1
wl_rxstreams=0
usb_websendto_x=
wan_pppoe_idletime=1800
wl0_mode_ex=ap
wl0_net_reauth=36000
st_max_user=5
wsc_config_command=0
st_samba_mode_x=-1
wsc_beacon_ielen=30
wl_dtim=1
dhcp_staticnum_x=0
wl_wds_timeout=1
lan_hwaddr=00:11:22:33:44:54
wl0_antdiv=-1
wsc_mode=enabled
wan_pppoe_options_x=
lltd_device_name=ASUS_ROUTER
filter_wl_dstip_x=
autofw_inport_x=
wan_route_x=IP_Routed
wl0_rate=0
wl0_closed=0
btn_rst=
wsc_currentband=
wl0_phytype=l
usb_disc1_index=0
wl_mode=ap
wan0_pppoe_passwd=
http_passwd=admin
lan_ifnames_t=vlan0 eth1
wan_pppoe_demand=0
wl_auth_mode=open
wl0_key3=10FFF83083C79D502FE0F13EE0
wl0.2_hwaddr=00:11:22:33:44:56
wl0_key4=10FFF83083C79D502FE0F13EE0
wl0_wdslist_x=
filter_client0=
apps_status_checked=0
wl_macmode=disabled
wan_hwname=
wan_netmask=
wl0id=0x4318
wl0_key1=10FFF83083C79D502FE0F13EE0
wl0_key2=10FFF83083C79D502FE0F13EE0
reboot_WCN=
wan_reason_t=lost IP from server
wl_plcphdr=long
http_username=admin
st_samba_workgroup=WORKGROUP
computer_name=WL500g.Premium2
lan_netmask=255.255.255.0
usb_ftpnum_x=0
usb_ftprights_x=
url_num_x=0
wl0_nband=2
wl0_radio_x=1
wl_akm=
sromrev=3
wl0_gmode=1
usb_webrectime_x=0
apps_dl_share_port_from=10000
usb_websecurity_x=0
url_keyword_x=
apps_dms_usb_port_x2=-1
wl0_ap_isolate=0
dr_staticnum_x=0
vts_lport_x=
wl0_wme_sta_bk=15 1023 7 0 0 off off
apps_dl=1
usb_ftpusername_x=
usb_webactivex_x=7777
success_start_service=1
wl0_wme_sta_be=15 1023 3 0 0 off off
wl_maclist_x=
vts_proto_x=
vts_ipaddr_x=
wan0_ifname=eth0
filter_lw_dstip_x=
wl_infra=1
reset_gpio=2
wl_leddc=0x640000
fw_disable=0
wl0_country_code=DE
dhcp_dns1_x=
wan_pppoe_passwd=
et0macaddr=00:11:22:33:44:54
wan_pppoe_keepalive=0
os_ram_addr=80001000
printer_model_t=
wan_route=
wl0_frameburst=off
dr_staticipaddr_x=
vts_protono_x=
qos_rulenum_x=0
url_date_x=1111111
dhcp_wins_x=
misc_httpport_x=8080
wan_pppoe_ac=
regulation_domain=0X30DE
macfilter_enable_x=0
wan_desc=
dl_ram_addr=a0001000
url_time_x=00002359
usb_path_webcam=
sdram_init=0x000B
httpd_die_reboot=
usb_webimage_x=1
apps_dmsx=1
qos_port_x=
wl0_bcn=100
wan0_heartbeat_x=
vts_num_x=0
wl0_dfs_postism=60
wl_corerev=
usb_storage_busy2=0
et0phyaddr=30
time_zone=UCT-1_2_1
wl_frag=2346
lan_netmask_t=255.255.255.0
wan0_desc=Default Connection
wl_preauth=enabled
dhcp_static_x=0
wl_maclist=
filter_macmode=deny
wan0_hwaddr_x=
wl_nbw=20
wl0_sta_retry_time=5
dmz_ip=
ezc_enable=1
wl_bss_maxassoc=128
wl_ssid2=wl_test
boardflags=0x0750
wandevs=et0
wan0_pppoe_mtu=1492
filter_lw_desc_x=
wan_dns1_x=
wl0_wme_apsd=on
usb_ftpanonymous_x=1
wl0_rateset=default
usb_ftpsuper_x=0
misc_conntrack_x=4096
x_DHCPClient=1
usb_disc1_path3=
btn_ez=
usb_disc1_path4=
os_name=linux
usb_disc1_path5=
lan_proto=dhcp
clkfreq=240
lan_ipaddr=192.168.1.1
usb_disc1_path6=
wan_ifnames=eth0
usb_disc1_path0=
wan0_hwname=
usb_disc1_path1=
lan_gateway_t=192.168.1.1
usb_disc1_path2=
wan_pppoe_username=
wan_stb_x=0
wl0_wsc_reg=disabled
ddns_wildcard_x=0
lan_hostname=
wl0_radius_ipaddr=
vlan_enable=1
sr_enable_x=0
misc_http_x=0
lan_ifnames=vlan0 eth1
wl0_wme=off
wl0_wep_x=2
asusddns_tos_agreement=0
log_level=0
wan0_gateway=
wl0_reg_mode=off
wan_hwaddr=
apps_share=share
wl_nmode=-1
ntp_servers=time.nist.gov pool.ntp.org
wl0_radio_date_x=1111111
wl0_bss_enabled=1
wan0_etherspeed_x=auto
sr_if_x=
usb_web_device=
wan_ipaddr_t=
wan0_pppoe_mru=1492
wl0_unit=0
wl_wsc_reg=disabled
wl_hwaddr=
asus_mfg=
wl0.3_hwaddr=00:11:22:33:44:56
printer_user_t=
wsc_restart_services=0
sr_num_x=0
printer_status_t=
wl0_mode_x=0
wl_mode_ex=ap
wan_dns2_x=
wl_ssid=wl_test
wan_pppoe_mtu=1492
wait_time=3
wl0_afterburner=off
wl_chan_list=1 2 3 4 5 6 7 8 9 10 11 12 13
wan_dns=
wl0_radio_time_x=00002359
wl0_wme_ap_vo=3 7 1 3264 1504 off off
wl0_radioids=BCM2062
filter_wl_num_x=0
wl0_wme_ap_vi=7 15 1 6016 3008 off off
usb_webhttpcheck_x=0
usb_disc0_port=0
autofw_outport_x=
wsc_rand_ssid=WL500gP_95217
filter_maclist=
usb_disc1_dev=
wl_phytype=b
wan0_hostname=
wan0_proto_t=
wl0_vlan_prio_mode=off
macfilter_num_x=0
wl_dfs_postism=60
wl_wme_sta_vo=3 7 2 3264 1504 off off
filter_wl_dstport_x=
wl_wme_sta_vi=7 15 2 6016 3008 off off
wl0_dtim=1
wl_nreqd=0
ntp_server0=time.nist.gov
usb_websecurity_date_x=1111111
ntp_server1=pool.ntp.org
boardtype=0x48E
wl_wme_bss_disable=0
stats_server=
usb_audio_device=
dhcp_staticmac_x=
dhcp_start=192.168.1.2
wan_etherspeed_x=auto
dr_staticgateway_x=
wl_mrate=0
wan_pppoe_mru=1492
reboot=
qos_userdef_enable=0
wl0_mode=ap
forward_port0=
wsc_beacon_ie=0x610x640x640x000x010x000x000x000x010x000x000x000x000x0e0x000x500xf20x040x100x4a0x000x010x100x100x440x000x010x020x000x00
usb_websecurity_time_x=00002359
wan_pppoe_txonly_x=0
lan_domain=
timer_interval=3600
usb_disc0_pid=
wan_pppoe_service=
wl_wme_apsd=on
machine_name=WL500gP
wl_radius_ipaddr=
pmon_ver=CFE 4.131.23.0
wl_radio_x=1
st_ftp_modex=1
x_WANType=1
wl0_infra=1
boot_wait=on
wan0_dns=
fw_dos_x=0
wl0_leddc=0x640000
usb_disc0_safely_removed=0
boardrev=0x10
wan0_proto=dhcp
wl_wdsapply_x=0
dr_enable_x=1
printer_ifname=usb
opo=0x0
wsc_client_role=
wan_unit=0
wl_antdiv=-1
wl_reg_mode=off
wan0_dns1_x=
autofw_port0=
autofw_desc_x=
wl0_crypto=tkip
wl_bcn=100
wl_dfs_preism=60
wl_sta_retry_time=5
wsc_method=1
wl_closed=0
wl0_auth_mode=open
wl_wme_txp_bk=7 3 4 2 0
wl_wme_txp_be=7 3 4 2 0
dhcp_enable_x=1
wl0_nmcsidx=-1
wcn_enable_x=1
wan_dnsenable_x=1
wan0_unit=0
ddns_passwd_x=
vlan0hwname=et0
wl0_gmode_protection=auto
sr_matric_x=
apps_dms_usb_port=1
wl_afterburner=off
dr_static_rip_x=0
wl0_nbw_cap=2
usb_storage_device=
wan0_pppoe_idletime=1800
wan0_pppoe_service=
networkmap_fullscan=0
wl_radioids=
wan0_hwaddr=00:11:22:33:44:58
console_loglevel=7
wl_gmode_protection=auto
wsc_uuid=0x001e8cc264c2001e8cc264c20300d438
wsc_timer_start=0
wl0_maclist_x=
usb_websubject_x=Motion detection alert!!!
sr_gateway_x=
is_modified=0
wan_ipaddr=
usb_path_audio=
usb_ftpmaxuser_x=
wan0_dns2_x=
usb_webdriver_x=
usb_ftptimeout_x=120
usb_webmode_x=1
filter_wl_srcip_x=
sdram_refresh=0x0
apps_caps=0
dhcp_domain=wan
apps_comp=0
wl_wme=off
wan_primary=0
wl0_ssid2=wl_test
ccode=0
wsc_prbrsp_ielen=151
usb_ftppasswd_x=
vlan1ports=4 5u
bs_mode=
qos_ip_x=
scratch=a0180000
wl_wdslist_x=
dhcp_gateway_x=
qos_service_ubw=0
router_disable=0
wl0_wep=enabled
wl0_frag=2346
wsc_proc_mac=
qos_service_enable=0
usb_disc0_index=0
autofw_num_x=0
lan1_netmask=
wl_rateset=default
wl0_wme_sta_vo=3 7 2 3264 1504 off off
wl0_wme_sta_vi=7 15 2 6016 3008 off off
wl_phrase_x=
wsc_prbrsp_ie=0x610x640x640x000x010x000x000x000x020x000x000x000x000x870x000x500xf20x040x100x4a0x000x010x100x100x440x000x010x020x100x410x000x010x000x100x3b0x000x010x030x100x470x000x100x000x1e0x8c0xc20x640xc20x000x1e0x8c0xc20x640xc20x030x000xd40x380x100x210x000x070x410x530x550x530x540x650x6b0x100x230x000x0f0x570x690x720x650x6c0x650x730x730x200x520x6f0x750x740x650x720x100x240x000x090x570x4c0x350x300x300x670x700x760x320x100x420x000x020x340x350x100x540x000x080x000x060x000x500xf20x040x000x010x100x110x000x140x410x530x550x530x200x570x690x720x650x6c0x650x730x730x200x520x6f0x750x740x650x720x100x080x000x020x000x880x780x30
wl0_radius_port=1812
filter_wl_proto_x=
wl0_wds=
productid=WL500gpv2
rxpo2g=-8
wl_vlan_prio_mode=off
wl0_nmode=-1
wl_country_code=DE
secret_code=96077689
dr_static_matric_x=1
wan_proto=dhcp
wl0_wpa_psk=test108
wl_radarthrs=1 0x6c0 0x6e0 0x6bc 0x6e0 0x6ac 0x6cc 0x6bc 0x6e0
filter_lw_srcip_x=
boardflags2=0
usb_web_flag=
dr_staticnetmask_x=0
wsc_restart=normal
wsc_modelname=Wireless Router
acc_username=
wl0_lazywds=0
swapoff_failed=0
wl0_wdsapply_x=0
xtalfreq=25000
lan_stp=1
ftp_lang=EN
wl0_radio_power_x=17
sp_battle_ips=1
wl_wpa_psk=test108
ddns_username_x=
usb_webremote1_x=
lan_lease=86400
qos_userspec_app=0
wan0_status_t=Disconnected
wl0_wme_txp_bk=7 3 4 2 0
qos_prio_x=
wl_wme_ap_bk=15 1023 7 0 0 off off
wan_domain=
nvram_version=1
sh_num=0
usb_ftpbanip_x=
fw_wl_enable_x=0
wl_wme_ap_be=15 63 3 0 0 off off
wl0_dfs_preism=60
wl0_nreqd=0
wl0_wme_txp_be=7 3 4 2 0
wl0_ssid=wl_test
filter_lw_proto_x=
is_default=1
usb_ftpport_x=21
wan_gateway_t=
dhcp_lease=86400
usb_webfresh_x=1
os_flash_addr=bfc40000
wan0_dns_t=
apps_dms=1
wl0_mrate=0
time_interval=20
qos_dfragment_enable=0
gpio3=ses_button
wl0_rxstreams=0
lan_ipaddr_t=192.168.1.1
wl0_ifname=eth1
temp_lang=
wl_wdsnum_x=0
wl0_nctrlsb=none
http_wanport=
et0mdcport=0
watchdog=3000
qos_=
wl_phytypes=
wl0_phrase_x=
wan_mode_x=2
apps_dlx=1
usb_webremote2_x=
wl_txstreams=0
misc_ping_x=0
apps_dl_seed=24
filter_wl_default_x=ACCEPT
log_ipaddr=
wan0_ipaddr=
wl_radius_port=1812
wl_mode_x=0
filter_lw_dstport_x=
apps_dl_share_port_to=10050
The output of ./scripts/diffconfig.sh is as follows:
CONFIG_TARGET_brcm47xx=y
CONFIG_TARGET_brcm47xx_Broadcom-b44-b43=y
CONFIG_TARGET_BOARD="brcm47xx"
CONFIG_PACKAGE_kmod-fs-ext4=y
CONFIG_PACKAGE_kmod-lib-crc16=y
CONFIG_PACKAGE_kmod-nls-base=y
CONFIG_PACKAGE_kmod-scsi-core=y
CONFIG_PACKAGE_kmod-usb-brcm47xx=y
CONFIG_PACKAGE_kmod-usb-core=y
CONFIG_PACKAGE_kmod-usb-ohci=y
CONFIG_PACKAGE_kmod-usb-storage=y
CONFIG_PACKAGE_kmod-usb2=y
CONFIG_TARGET_INITRAMFS_COMPRESSION_LZMA=y
CONFIG_TARGET_ROOTFS_INITRAMFS=y
# CONFIG_TARGET_ROOTFS_SQUASHFS is not set
CONFIG_TARGET_ROOTFS_TARGZ=y
No modification in kernel were done, and "make kernel_menuconfig" wasn't used.
The contents of the /sys/bus/ssb directory in the system is as follows:
root@OpenWrt:/# ls /sys/bus/ssb
devices drivers_autoprobe uevent
drivers drivers_probe
root@OpenWrt:/# ls /sys/bus/ssb/devices/
ssb0:0 ssb0:1 ssb0:2 ssb0:3 ssb0:4
root@OpenWrt:/# ls /sys/bus/ssb/drivers
BCM-GigE b43 b43legacy b44 ssb_hcd
(Last edited by wzab on 1 Oct 2013, 20:07)